Jump to content
AeroPostal

Rigging A Vehicle To Spawn After A Task Is Completed/

Recommended Posts

Hello evveryone. 

I'm creating a mission where you are tasked to intercept bomber flights before they bomb a specific target. However to keep things reasonable, I only want the next bomber to spawn after the first one is destoryed.  Using the variable name bomber2 what would the trigger code look like for making this happen? 

Share this post


Link to post
Share on other sites

Place a marker where you want to spawn the bomber, name it "BomberSpawn".

Place a marker where you want the spawned bomber to move to, name it "BomberDestination";

Place a trigger type none, activation anybody.

 

In the triggers condition field:

!alive bomber2

 

In the triggers onAct field:
 

bomber2 = typeof bomber2 createVehicle [0,0,500];
bomberpos = getMarkerPos "BomberSpawn";
bomberpos set [2,500];
bomber2 setPosATL bomberpos;
bomber2 setVelocityModelSpace [0,150,0];
createVehicleCrew bomber2;
bomber2 move getmarkerpos "BomberDestination";

Now if you set the trigger to repeatable it will constantly spawn a new bomber when the old one was killed.

You could also a trigger countdown to have some duration between bomber spawns.

 

Cheers

  • Like 1

Share this post


Link to post
Share on other sites

You know, for a grumpy old man, you're not so bad!  Thanks for the help brother. 

Share this post


Link to post
Share on other sites
2 hours ago, AeroPostal said:

You know, for a grumpy old man, you're not so bad!  Thanks for the help brother. 

Well you've been very descriptive about your problem, so helping out didn't take much effort.

 

Cheers

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

×