Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Infinite Spawn Until Leaving Zone

Author
Message
Eggie
14
Years of Service
User Offline
Joined: 10th Oct 2010
Location:
Posted: 11th Jun 2011 02:17
I'm having problems with the spawns. I want to have an enemy infinitely spawning when I enter a trigger zone and stop after I leave. My script is:

I've set Spawn at start to No and Spawn after delay to Yes. When I set Maximum Spawn to 99, it doesn't stop spawning, even after I leave the zone.
Any help is appreciated. Thanks
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 11th Jun 2011 10:12
Eggie,

Sorry to break it to you, but you can't stop enemies from spawning once they have started, your only hope would be to add:



to the appear script of your enemy. The enemy wll still appear, but then get instantly killed. It' not great, but it's all you can do without modifying the source code.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 11th Jun 2011 12:56
What I would do is modify the appear script so that they only appear when a certain variable is set to one. When the player is within the zone, the variable stays one. When the player leaves the zone, the variable is set to zero.

Login to post a reply

Server time is: 2024-11-24 08:45:37
Your offset time is: 2024-11-24 08:45:37