Jump to content
Sign in to follow this  
R3vo

Spawn helicopter wreck or prevent wreck from getting deleted

Recommended Posts

Hey Arma community,

I'm currently working on a script which creates a crashside when the player calls it. However,I've got stuck at some point.

Is there a way to spawn a helicopter wreck directly with ""createVehicle _pos, or is the only way to get a helicopter wreck, to spawn a working one and destroy it afterwards with setDamage 1;? If that's so, then I need a way to prevent the game to delete that wreck, because otherwise the crashside will still be there when the player arrive, however, without wreck.

Thank you in advance

R3vo

Share this post


Link to post
Share on other sites

Land_Wreck_Heli_Attack_01_F

Land_Wreck_Heli_Attack_02_F

Land_Wreck_Plane_Transport_01_F

_wreck = createVehicle ["Land_Wreck_Heli_Attack_02_F", position player, [], 0, "CAN_COLLIDE"];

Also check out wreckManagerMode. This sets which vehicles can be managed by the vehs deletion manager. IE; Only ones that have respawn enabled. Via module etc.

eg;

wreckManagerMode = 2; // only vehicles that can respawn are managed (cleaned up)

Also, Idk if they still be deleted if their simulation is disabled. So try to disable the simulation of your custom wrecks.

_veh enableSimulationGlobal false;

Edited by Iceman77

Share this post


Link to post
Share on other sites
Land_Wreck_Heli_Attack_01_F

Land_Wreck_Heli_Attack_02_F

Land_Wreck_Plane_Transport_01_F

_wreck = createVehicle ["Land_Wreck_Heli_Attack_02_F", position player, [], 0, "CAN_COLLIDE"];

Also check out wreckManagerMode. This sets which vehicles can be managed by the vehs deletion manager. IE; Only ones that have respawn enabled. Via module etc.

eg;

wreckManagerMode = 2; // only vehicles that can respawn are managed (cleaned up)

Also, Idk if they still be deleted if their simulation is disabled. So try to disable the simulation of your custom wrecks.

_veh enableSimulationGlobal false;

Thanks for your help. I've already thought about disableing simulation myself.

Edit: I've just tested it with enableSimulation false; and it seems to work.

Edited by R3vo

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×