Page 1 of 1

implementing spawner

Posted: Sat Sep 09, 2017 3:56 pm
by slapin
Hi all!

How can I implement spawner for objects on certain criteria on level load?
I know how to do it using trigger but I can't find a way to do it on level load.
Any ideas?

Re: implementing spawner

Posted: Sat Sep 09, 2017 6:16 pm
by Duion
Try adding it in the function

Code: Select all

function CoreGame::onMissionLoaded
The comment also describes it:

Code: Select all

// Called by loadMissionStage2() once the mission is finished loading //LogEcho("\c4CoreGame::onMissionLoaded(" SPC %game.class SPC ")");
I setup teams, objectives and spawners there.

Re: implementing spawner

Posted: Sat Sep 09, 2017 11:01 pm
by slapin
Thanks a lot! This one works!