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 / Play sound when facing ai?

Author
Message
chicellwest
12
Years of Service
User Offline
Joined: 6th Nov 2012
Location: The Moon™
Posted: 7th Nov 2012 12:56
Heyy i'm making a Zombie game and well i've been playing round with things but..
I'm not sure how to play a sound once when i face the ai.
By that i mean if the Zombie is behind me and i turn round it will play my sound (Laugh.wav)

Does anyone know anything about this?


Thanks so much guys
Killj0y17
12
Years of Service
User Offline
Joined: 15th Sep 2012
Location: In a pineapple, under the sea
Posted: 12th Nov 2012 12:05
here,

however, this is just a script wherein if an entity is seen, it will play a sound, you can change the etimergreater=3000 to the length of your sound, for example you have a 10-second sound, then do etimergreater=10000
now about the AI, if you set mainscript of the AI to the script above, the AI will not move, AT ALL.....sorry, I hope someone else can help you. (not a scripting whiz myself )
I do hope the my script gave an idea to you.

Login to post a reply

Server time is: 2024-11-23 19:56:26
Your offset time is: 2024-11-23 19:56:26