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 / Script doest work!?!

Author
Message
Nalle Karhu
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: Finland
Posted: 8th Mar 2007 16:43
So what is wrong with that script?

Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 8th Mar 2007 19:48
Well, it looks like you want a guard to follow waypoints until he/she sees the plr and then the game ends.

in your state=0, line two... you need to remove the letter i from your rotatey=180 command.

If your guard is following the waypoints but wont stop when the player is in sight, it may be because you don't tell it to.

you may need a line like this:
:plrcanbeseen=50:state=2

**Also, to have the game quit like this would make someone think your game crashed. I strongly suggest you add an image to tell the player they've been spotted by a guard and the game is over. You can do this very easily by using a command like this:
:state=2:video="image directory here",quitgame

I hope this info helps, good luck!

Nalle Karhu
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: Finland
Posted: 8th Mar 2007 21:04
yeah thanks! This is my second script so i'm noob at scripting
Nalle Karhu
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: Finland
Posted: 9th Mar 2007 17:20 Edited at: 9th Mar 2007 17:20
I have two questions:
What is the number behind noiseheard and plrcanbeseen condition and how I can prevent the guard to see throught entitys?
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 10th Mar 2007 20:31
I never figured out the numbers behind noiseheard= either. Whenever I used it in a script, any level of noise from anydistance would trigger a reaction even if you open a door or pickup a key! I think it's a faulty command, but it could be I just don't get it yet.

Login to post a reply

Server time is: 2024-11-23 12:39:52
Your offset time is: 2024-11-23 12:39:52