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 / Trigger Zone logic?

Author
Message
Sanguis
15
Years of Service
User Offline
Joined: 10th Jan 2011
Location: Deutschland
Posted: 18th Jun 2011 22:35
Hi,
I don't get the trigger zone logic. I have a light, a room and a trigger thone. I gave the trigger zone the lightoff.fpi as main script. But nothing happend when the player walks into the trigger zone. Even the trigger zone sound is not been played.

What do I do wrong? Does trigger zones not work this way?

Greetings,
Andy

~ And when I sometimes clos my Eyes, my mind starts, spinning around.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th Jun 2011 01:07
Make a dynamic light and give it a unique name.
Make a trigger zone. Set the main script to plrinzoneactivateused.fpi.
In the, if used: properties for the trigger zone use the name of the light entity.
Sanguis
15
Years of Service
User Offline
Joined: 10th Jan 2011
Location: Deutschland
Posted: 19th Jun 2011 01:21
Hi,

this worked, much thanx!
But I don't understand how. Where do I tell the Engine to turn the light off? What, when I want to turn it on (I don't want it... but I want to understand the theroy).

Greetings,
Andreas

~ And when I sometimes clos my Eyes, my mind starts, spinning around.
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th Jun 2011 03:02 Edited at: 19th Jun 2011 03:03
This is controlled by the scripts. Take a look at the two scripts involved.

Light main script: light1.fpi


Triggerzone main script: plrinzoneactivateused.fpi


This simple modification to plrinzoneactivateused.fpi will make the light go out when your in the triggerzone and come back on when you leave.



Hope this helps.
Sanguis
15
Years of Service
User Offline
Joined: 10th Jan 2011
Location: Deutschland
Posted: 19th Jun 2011 13:30
Hi,

thanks. I fergot to look in the light1.fpi because I thought it must stand in the trigger zone scripts. But now I understand more. Thanks a lot .

Andreas

~ And when I sometimes clos my Eyes, my mind starts, spinning around.

Login to post a reply

Server time is: 2026-07-01 09:05:45
Your offset time is: 2026-07-01 09:05:45