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 Product Chat / How can I "disable" a trigger?

Author
Message
NarGalloth
13
Years of Service
User Offline
Joined: 28th Aug 2010
Location: Spain
Posted: 5th Aug 2011 04:18
Hi.

I'm having a problem in one of the levels of my game. It's a horror game in the space, and all over the level I have put some trigger zones that spawn enemies to attack the player.
What's the problem then? Easy: the triggers activate every time I step on them. How can I "disable" these triggers in order to avoid them working again?

I hope my problem is clearly explained, and it will be glad to receive some advice from you.
Note: I don't know if my english is bad; sorry if that's the case.

Regards

The are always posibilities. The secret is to never give up.
GameBuilder
13
Years of Service
User Offline
Joined: 14th Oct 2010
Location:
Posted: 5th Aug 2011 04:23
i think you mean you want it to work only once right ???

Builder
Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 5th Aug 2011 04:37
Send the script to a state that does not exist, or one that does nothing, rather than having it loop.

GameBuilder
13
Years of Service
User Offline
Joined: 14th Oct 2010
Location:
Posted: 5th Aug 2011 04:49
Conjured i didnt really get what you have just said ? what do you mean ?

P.s i am not scripter but i am learning

Builder
NarGalloth
13
Years of Service
User Offline
Joined: 28th Aug 2010
Location: Spain
Posted: 5th Aug 2011 05:09
@GameBuilder: Yes, I want it to work only once.

@Conjured Entertainment: The script those trigger zone are using is one of the FPSC default scripts, the "plrinzoneactivateused.fpi".

:state=0,plrwithinzone=1:activateifused=1,sound=$0,state=1
:state=1,plrwithinzone=0:state=0

Then, will it work only once if I do this? :

:state=0,plrwithinzone=1:activateifused=1,sound=$0,state=1
:state=1,plrwithinzone=0:state=2



Thanks for your answers.

Regards

The are always posibilities. The secret is to never give up.
NarGalloth
13
Years of Service
User Offline
Joined: 28th Aug 2010
Location: Spain
Posted: 6th Aug 2011 19:32
Sorry for not answering before (and for the double-post too).

I tried what Conjured Entertainment told me, and it worked correctly. Thanks!

PROBLEM SOLVED

The are always posibilities. The secret is to never give up.

Login to post a reply

Server time is: 2024-04-28 00:20:09
Your offset time is: 2024-04-28 00:20:09