Jump to content
Sign in to follow this  
demonhunter212

Quick Question

Recommended Posts

I've been having alot of questions and was wondering:

Is it possible to make a unit appear after a certain amount of time. EX: Say I had an allied Convoy coming from the south on desert island.... is there any possible way to make an Enemy Convoy come from that same position without appearing at the same time as the Allied Convoy............ thanks thumbs-up.gif

Share this post


Link to post
Share on other sites

Sure.

Use empty markers or any other invisible object like the "H", give them names and place them where you want the vehicles start.

create your enemy convoi with appropriate waypoints and lock the first waypoint. Move the convoi away from the desired starting position and use setpos to beam the convoi to the markers or the H with a trigger or script. Unlock the first waypoint with the trigger or script aswelll and the convoi will be beamed to the desired position once a condition you set is met.

Share this post


Link to post
Share on other sites

This would have to be done in a script. There's a few different ways you could do it.

Me I would:

1: Create the convoy at mission start. I would probably spawn it in a script, just because that's my style.

2: Move the convoy to the desired starting position when the desired condition is met.

3: Start the convoy moving along its path.

4: Delete any survivors once they are out of play.

You COULD hack something together out of scripts I posted here as several of them follow this basic process. The best candidate for that would probably the spawn mechanised infantry squad script I put there as it for ground units, thus simpler.

I'd be happy to write you a quick script to just do it if you don't have a clue what's what in scripting. If so, just PM me and I'll get to it.

Thinking about it, I need to update that script to incorporate some of the stuff I did in the spawnAirCavSquad Script. I'd better do that soon.

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  

×