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 / Anyone know guard script?

Author
Message
myfrm
17
Years of Service
User Offline
Joined: 12th Jul 2007
Location: India
Posted: 24th Jul 2007 06:00
A guard who follow waypoints, wait at the end and start for some seconds,if player is near, he has to say "Go away". Next time the player is near, he say "I already told. I will shoot you". If the player goes for a third time, he must shoot the player.


I made a script which is not working fully. I made this script for two states only. The guard have to shoot the player on second time.

Try for yourself what happens with this script.



drakul
game lover
17
Years of Service
User Offline
Joined: 27th Apr 2007
Location:
Posted: 24th Jul 2007 19:31
Well could you tell us whats not working so that we could help you with script?
myfrm
17
Years of Service
User Offline
Joined: 12th Jul 2007
Location: India
Posted: 24th Jul 2007 19:38
The first one is working all the time. For every time if the player goes near the guard, then he asks to goaway.(hud:guard1). He neither shoots nor display the second hud:guard2.

This is the problem.

drakul
game lover
17
Years of Service
User Offline
Joined: 27th Apr 2007
Location:
Posted: 24th Jul 2007 19:44 Edited at: 24th Jul 2007 20:09
Here ya go try this

myfrm
17
Years of Service
User Offline
Joined: 12th Jul 2007
Location: India
Posted: 25th Jul 2007 19:38
Ok thanks for helping me.
I'll try it.

drakul

Login to post a reply

Server time is: 2024-11-27 14:53:21
Your offset time is: 2024-11-27 14:53:21