Search the Community
Showing results for tags 'vehicle spawn'.
Found 3 results
-
Hello. When I try to add an event handler to a newly spawned vehicle, the event handler is NOT working. [_helicopter] remoteExec ["jey_helicopter_restriction",0,true]; jey_helicopter_restriction = { _vehicle = _this select 0; _vehicle addEventHandler ["GetIn",{_this call checkpilot}]; _vehicle addEventHandler ["Engine",{_this call checkengine}]; }; But if I add an event handler to an already spawned vehicle (that has been there from the mission start) it works : chopp3 addEventHandler ["GetIn",{_this call checkpilot}]; chopp3 addEventHandler ["Engine",{_this call checkengine}]; Any ideas?
- 11 replies
-
- eventhandler
- addeventhandler
-
(and 3 more)
Tagged with:
-
Vehicle Spawn When Missions Complete
DrumThumpinMonkey posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, I am looking for help with my missions regarding vehicle spawns. I am trying to have a helicopter spawn when all other missions are complete. Or to have an item spawn after missions are complete that allows the players to call in a helicopter. Any help would be great. Thanks! -
[] spawn { if (isServer && {isDedicated}) exitWith {}; waitUntil {!isNull player}; private "_jet"; _xEHx = player addEventhandler ["respawn", { _jet = createVehicle [selectRandom ["I_Plane_Fighter_03_AA_F", "O_Plane_CAS_02_F", "B_Plane_CAS_01_F"], getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition"), [], random 10000, "FLY"]; (_this select 0) moveInDriver _jet; }]; }; This script makes players respawn in jets. But the problem is that the jet spawns at 100m altitude and often spawns nose down and ends up crashing. Is there a way to make the plane spawn at 1000m or so so that it doesnt crash?
- 1 reply
-
- spawn
- vehicle spawn
- (and 4 more)