Jump to content
Sign in to follow this  
Signaller

Simple vehicle spawn script problem

Recommended Posts

I have made a small script that spawns an A10 at a specific location, works fine except for the fact that you can repeat the script & fill the area with spawned A10s.

What I want it to do is spawn one A10 & when the it's destroyed spawn another on request (think of it as a manual respawn).

It is vital that the spawned aircraft has the name ch50 as this is for a loadout script that I'm working on, I can't use the respawn script that comes with the mission as it deletes the unit name (hence my simple solution).

I've tried putting !alive ch50 in the trigger condition, doesn't work, the aircraft doesn't even spawn.

Code

ch50 = "A10_US_EP1" createVehicle (getMarkerPos "hspawn");

ch50 setDir 150;

Anyone got any ideas?

Thanks Signaller

Edited by Signaller

Share this post


Link to post
Share on other sites

search for Tophe´s vehicle respawn, it does all you need.

think i got the name right.

Share this post


Link to post
Share on other sites
search for Tophe´s vehicle respawn, it does all you need.

think i got the name right.

That worked perfectly thanks m8 =)

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  

×