OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: SAS4Life on 30 Jun 2009, 23:06:55
-
Hi folks
having a bit of trouble with an island gate can anyone give me some advice? I was the gate in Grid reference 037,093 to open on Chernarus. The id for the gate it 998853 i just need the animation name for it.
Cheers
-
i like to know the same thing
-
No gate with such object ID exists, that's a part of a wall. :dunno:
Is this the double gates for accessing the Radio mast?
If so, the right one opens with (position player nearestObject 998900) animate ["DoorR", 1]; and the left one with (position player nearestObject 998879) animate ["DoorL", 1];
If the player is far away from those gates place a game logic near the gates and use it instead of player..
-
If the player is far away from those gates place a game logic near the gates and use it instead of player.
Does the engine fail to recognize nearestObject if the player (or another reference unit) is to far away from the object in question?
-
No, but it might freeze the game for a moment if the player is so far away from the object that it's not "streamed up" by the engine.
I guess the freeze (and I think it's lenght depends on your PC) happens because the game has to search and "stream up" the object before it can manipulate it. :dunno:
EDIT:
Now to think of it, dunno why using the gamelogic would help..
So don't quote me on this. :P
But I do remember reading somewhere (here I guess) that such way would be better the longer the distance from the player to the object is. It might be that it has to do with how many objects have to be scanned for their IDs to reach the desired one, in which case using gamelogic near the object makes sense.
-
Okay, thanks. I was just curious. Didn't mean to hijack the thread.