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 / Hostage keeper script not working

Author
Message
AVPR
14
Years of Service
User Offline
Joined: 20th Jul 2010
Location:
Posted: 9th Jun 2011 03:23 Edited at: 9th Jun 2011 03:28
Hey. I've been working on a hostage keeper script that isn't really working too well. The hostage keeper is supposed to shoot you until you have only 20 HP left and then start following a waypoint around you and if you leave the premises you get killed, but he keeps killing me even after i only have 20 HP. Does anyone know why this is?

Attachments

Login to view attachments
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 9th Jun 2011 04:16 Edited at: 9th Jun 2011 04:24
:state=1,plrdistfurther=120:shootplr
:state=1,plrdistwithin=120:waypointstate=0

waypointstate=0 is a condition not an action

:state=1,waypointstate=2,plrdistfurther=120:shootplr

then omit the second line of state=1 because it will continuse on the waypoints anyway, until the player gets out of range while the enemy is following a waypoint

I can't promise it will work, because I don't play with waypoints much, but it's worth a try.
Also, make sure that range of 120 is right for your waypoint area, because the player may be out of range even though they are in range. (if that makes sense)

AVPR
14
Years of Service
User Offline
Joined: 20th Jul 2010
Location:
Posted: 10th Jun 2011 09:03
thanks. and i made sure that the waypoint didnt go out of a 120 range

Login to post a reply

Server time is: 2024-11-24 08:27:22
Your offset time is: 2024-11-24 08:27:22