Search the Community
Showing results for tags 'setposasl'.
Found 2 results
-
SetPos behaving differently on a dedicated server?
simkas posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I've noticed some really odd behavior when using setPos/setPosASL on a dedicated server. If I'm testing things locally, I can do setPos on a unit in any state and it will always work with no problems. On a dedicated server, it only appears to work if a unit is standing on the ground and is not in a vehicle. If they're in a vehicle or they're falling in mid-air, setPos does absolutely nothing. It doesn't seem to be a locality issue, as running it globally or remoteExec'ing it on the unit seems to make no different, setPos just seems to behave differently when on a dedicated server. Is this a bug or is there something with how that command works that causes this? -
[SOLVED] cant turn engine on after spawning an empty vehicle [Maybe a BUG]
sarogahtyp posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey guys, i m spawning a hunter with this code: { // for each vehicle _vec = createVehicle [(_x select 0), [0, 0, 0], [], 0, "NONE"]; _vec setPosASL ((_x select 1) vectorAdd [0,0,1]); } forEach _all_vec_info; the problem is that neither me as player nor any AI can turn the engine on and drive it. I dont understand it. If I test it then I see the hunter spawning, geting in it and try to move forward with "W" but nothing happens. I can change the front wheel direction but the engine is not turning on. I tried to choose "Engine On" from action menu. The engine sign in the hud is switching to white shortly and instantly switchs to grey. Idk what is causing that strange behavior. any help woul be appreciated. EDIT: I tested it with a Quad with the same result. I tested if there is fuel in it and the fuel value is nearly 1 I tested to add the vec to my group with debug console with following command: (group player) addVehicle (vehicle player); same strange result.... Testing environment is preview in 2D editor stable branch (not dev). After Fiddis post I testet do disable and enable Simulation via debug console ... doesnt help. tryteyker requested structure of _all_vec_info. it looks like this if 3 vehicles r stored in it: [[type, pos, vectorDir , ... ], [type, pos, vectorDir , ... ], [type, pos, vectorDir , ...]]- 25 replies
-
- createVehicle
- setPosASL
-
(and 2 more)
Tagged with: