implementing spawner

There are no stupid questions, just stupid answers.
3 posts Page 1 of 1
slapin
Posts: 24
Joined: Thu Aug 10, 2017 12:56 am
by slapin » Sat Sep 09, 2017 3:56 pm
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?
Duion
Posts: 832
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Sat Sep 09, 2017 6:16 pm
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.
slapin
Posts: 24
Joined: Thu Aug 10, 2017 12:56 am
by slapin » Sat Sep 09, 2017 11:01 pm
Thanks a lot! This one works!
3 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests