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 / Understanding Sound in Entity Script

Author
Message
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 23rd Mar 2009 00:18
I have a script copied from the pace.fpi script and have added a sound to it. This script is the main script for the entity (guard).



The guard is spawned from a trigger zone and when I hit this zone I hear the sound file. The guard walks the set waypoints and when it sees the player, it plays the sound and runs toward the player shooting just as it is suppose to.

I am trying to understand why I hear the sound when the guard is spawned when I hit the trigger zone. Is this normal?
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 23rd Mar 2009 00:25
The Trigger zone has a sound file that it plays when activated. You can simply right-click the zone and delete the text in the sound0 field and you will not hear it again... hopefully.

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 23rd Mar 2009 02:01
I had thought of that and made sure that I took the text out of the sound0 field. I was thinking that the sound plays because the entity is being spawned. The sound plays again only when the player is seen by the entity.

Login to post a reply

Server time is: 2024-11-24 22:42:01
Your offset time is: 2024-11-24 22:42:01