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 / how to end game by trigger?

Author
Message
blcksys
12
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 22nd Oct 2012 23:19
I'm trying to do a trigger effect that would end the game (win status), when the player is in that point

how to?
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 23rd Oct 2012 01:54
Quote: "I'm trying to do a trigger effect that would end the game (win status), when the player is in that point"


You can have the trigger spawn a win zone.

1. Place trigger zone. Right click on it to access the properties. In the main script, select "plrinzoneactivateused.fpi". In the If Used field, put the name you want to use as the win zone (example: Exit01)

2. Place win zone. Right click on it to access properties. In the start script, set to "appearifactivate.fpi". In the Name field, put the name you used in the If Used field of the trigger zone (example: Exit01). If you need the script, here it is:



When the player hits the trigger, the trigger zone will spawn the win zone. If you want to get fancy, you can script the main script of the trigger to do something first (such as show a hud, etc), then it can spawn the win zone by having the "activateifused=1" in the script for the trigger.


There's no problem that can't be solved without applying a little scripting.

Login to post a reply

Server time is: 2024-11-23 19:55:19
Your offset time is: 2024-11-23 19:55:19