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 / FPS Creator (speaking enemies)

Author
Message
Alan fox
1
Years of Service
User Offline
Joined: 4th Jul 2022
Location:
Posted: 4th May 2023 15:41
Hello I hope that if you have found this thread you will help me
I'm working on game using FPS Creator but I have a problem
I want the enemies to talk if they detect the player for example if enemy saw the player he will say enemie spotted or whatever I tried to create a basic script
but it didn't work
The script detects if the player is on the enemy field of vision or not and if he was a wav file will play

OnPlayerSeen:
  PlaySound "the audiofile" and then I provide the wave file with its full directory but it didn't work
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 4th May 2023 23:42
Hello Alan, this is a question for the script forum. But to answer quick, Yes, very easy to do.
Look for the command "plrcanbeseen" then together with maybe plrdistance ? an audio file can be played.
If you dont have the Syntax list for commands you can grab it here.... https://forum.thegamecreators.com/thread/180924
Any more questions just ask, but try to keep to the right forum when posting
best
** WHERE'S MY eXplosys ? **

Login to post a reply

Server time is: 2024-03-29 06:36:21
Your offset time is: 2024-03-29 06:36:21