Jump to content
Sign in to follow this  
omegasniper

scripting help

Recommended Posts

I am trying to create a mission where the bots re spawn in vehicles, because when they die and re spawn they lose their waypoints, like ones telling them to board vehicles. If someone could help me find a script to solve this problem i would greatly appreciate it.

Share this post


Link to post
Share on other sites

Just respawn then in the vehicles.

_unit assignAsDriver _vehicle; _unit moveInDriver _vehicle;

Share this post


Link to post
Share on other sites

That entirely depends on how you're respawning your units. How are you doing that exactly?

Share this post


Link to post
Share on other sites

using this respawn script in the description file

respawn = Base;

respawndelay = 10;

Share this post


Link to post
Share on other sites

These are players and playableAI you want to move into vehicles and give waypoints to? You could use the MPRespawn eventHandler for that. Here's an example of spawning and respawning in a parachute for ArmA2, same kind of thing for ArmA3. I wouldn't give players waypoints though. Totally unnecessary.

Share this post


Link to post
Share on other sites

ok well ive been playing around with this "fnc_letsFly = {

_para = createVehicle ["I_Plane_Fighter_03_AA_F", getMarkerPos "mrk_dropZone", [], 0, "FLY"];

_para setPosATL [getPosATL _para select 0, getPosATL _para select 1, 1000];

player moveInDriver _para;

};"

but it doesnt really help with the bots it only acts on the "player" am i missing something, or is this over complicated?

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  

×