Spawn delay and timer [Solved]
Moderator: Moderators
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Spawn delay and timer [Solved]
I'm bad at lua stuff, and I want a one and a half minute time to go on right when you start and then when it ends team 3 and team 2 spawn. Does anyone know how to do this?
Last edited by Noobasaurus on Sun Oct 23, 2011 3:06 pm, edited 2 times in total.
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Spawn delay and timer
Yeah. In the stock campaign luas, there is this function that checks if once the player spawns, then the objects will start. You will need that function. For more information, see the following:
And what do you know, that function already has a timer! You may edit that timer to fit your need. For more information, see the following:
Combine the timer with the information here, and you should be good to go. You essentially assign team 2's and 3's command posts to not use spawn paths. Then, when your timer hits zero, you assign the command posts their original spawn paths. Hope this help. I hope you weren't expecting someone to do the entire thing for you, by the way...
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Spawn delay and timer
I tried my luck and (of course) it didn't work. Here it is:
Absolutely nothing happened. I assume I put something wrong in the wrong place...
Or maybe I put the whole thing in wrong place! Probably not.
EDIT: I tried my luck again using a stock script and this is what I got and it doesn't work:
I also tried putting it after All I've seen this do is force you to the team which I want you to do, but no timer and no delayed spawn.
EDIT2: I tried again and got this:
and this was the error:
EDIT: Got it.
Hidden/Spoiler:
Or maybe I put the whole thing in wrong place! Probably not.
EDIT: I tried my luck again using a stock script and this is what I got and it doesn't work:
Hidden/Spoiler:
Code: Select all
function ScriptPostLoad()EDIT2: I tried again and got this:
Hidden/Spoiler:
Hidden/Spoiler:
