Jump to content
Sign in to follow this  
infiltrator_2k

Periodically Spawning Vehicles/troops With Miltiple Triggers But With One Script?

Recommended Posts

My mission is quite dynamic in the sense that vehicles and troops spawn on various !alive and enemy count triggers etc. I've set this way to not even I know when to expect things to happen. Same with the enemy AI, I've set many with 33% presence with SAD waypoints, that way the game's more fluid and exciting to play. My only issue is having to many spawn scripts cluttering up my mission folder. Is it possible to put all of these spawn scripts into one script if they use multiple triggers?

I ask this because the numerous scripts obviously don't trigger in a specific order so I'm not sure if it's possible or not.

Cheers Ian

Share this post


Link to post
Share on other sites

If all the scripts are the same, you can simply use one and execute it multiple times whenever its needed. Or if there are say 3 different variation of spawned enemies, you can switch/do to a case that is a parameter passed during execution via your trigger.

Share this post


Link to post
Share on other sites

I made one of my own, a waypoint patrol script. I also made a script that uses AI Spawn Script and can also incorporate UPSMON with the AISS spawned units.

While learning the language takes time and practice, its really not a big deal at all to make a script that calls a script. If you already know how to call a script like AI Spawn Script then all you need to do is decide what you need to pass to your script, build the logic in your script to randomize things (or whatever you are doing) and then call the spawn script you are using now.

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  

×