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 / Spawning sound events or triggers

Author
Message
Pjazerlazer
13
Years of Service
User Offline
Joined: 15th Nov 2011
Location:
Posted: 16th Nov 2011 02:53
Sup peoples,
Ok I need suggestions. I have a level where you travel into a building and walk over a sound event to get to a room and pick up a key. What I want to happen is [player walks over event and no sound plays until player comes back with key] Now, I\'ve figured out that spawning an event through an object does not work and the USE KEY is also ineffective. Any suggestions would be greatly appreciated!

THANKS IN ADVANCE

The Lazer
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 18th Nov 2011 06:59
Try editing the trigger zone script so that it checks for the key.

something like:
Quote: ":plrwithinzone=1,plrhaskey=1:plrsound=..."


You need to name the key entity within the trigger zone.

Pjazerlazer
13
Years of Service
User Offline
Joined: 15th Nov 2011
Location:
Posted: 19th Nov 2011 17:15
Ya I did something like that check this plrinzone script I modded, sadly it didnt work:

The Lazer

Attachments

Login to view attachments
Pjazerlazer
13
Years of Service
User Offline
Joined: 15th Nov 2011
Location:
Posted: 19th Nov 2011 17:17
PS Thanks for the response!

The Lazer
Pjazerlazer
13
Years of Service
User Offline
Joined: 15th Nov 2011
Location:
Posted: 21st Nov 2011 02:46
Ok here's my dis functioning script, take a look and tell me whatcha think:


;Artificial Intelligence Script

;Header

desc = Plr In Zone, activate entity specified in IF USED

;Triggers

:state=0,plrwithinzone=1,plrhaskey=OldRustyKey:sound=$0,state=1
:state=1,plrhaskey=0,state=0

The Lazer
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 21st Nov 2011 11:35
Quote: ":state=1,plrhaskey=0,state=0"


only one ":", cant work


;Artificial Intelligence Script

;Header

desc = Plr In Zone, activate entity specified in IF USED

;Triggers

:state=0,plrhaskey=0:state=0
:state=0,plrwithinzone=1,plrhaskey=OldRustyKey:sound=$0,state=1

to play the sound once when you enter the zone with a key.
Pjazerlazer
13
Years of Service
User Offline
Joined: 15th Nov 2011
Location:
Posted: 21st Nov 2011 18:15
lmao THANKS dont see how I missed dat

The Lazer

Login to post a reply

Server time is: 2024-11-24 04:06:49
Your offset time is: 2024-11-24 04:06:49