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 Product Chat / Script problem

Author
Message
Fps n00b
15
Years of Service
User Offline
Joined: 24th Apr 2009
Location:
Posted: 9th Aug 2009 22:02
I'm trying to have this guy look around and then follow the waypoint (he's going to tell me how to break out of the cell then walk away) but when I test it he just stands there! He's the script, can anyone help?



:state=0:lookatplr,timerstart,state=0
:state=0,timergreater=400:Settargetname=kbar,lookattarget,timerstart,state=1
:state=1,timergreater=100:lookatplr,state=1
:state=1,timergreater=200:settargetname=US marine (pistol),lookattarget,state=1
:state=1,timergreater=200:lookatplr,state=1
:state=1,timergreater=400:state=2
:state=2,waypointstate=0:animate=5,waypointstart,state=2
:state=2,waypointstate=3:animate=5,waypointnext,state=2
:state=2,waypointstate=5:destroy,state=3

;end of script
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 10th Aug 2009 04:52 Edited at: 10th Aug 2009 05:00
Don't send states back to the same state.
There is no point going to the same state because you are already there.

:state=0:lookatplr,timerstart,state=0
:state=0,timergreater=400:Settargetname=kbar,lookattarget,timerstart,state=1
:state=1,timergreater=100:lookatplr,state=1
:state=1,timergreater=200:settargetname=US marine (pistol),lookattarget,state=1
:state=1,timergreater=200:lookatplr,state=1
:state=1,timergreater=400:state=2
:state=2,waypointstate=0:animate=5,waypointstart,state=2
:state=2,waypointstate=3:animate=5,waypointnext,state=2
:state=2,waypointstate=5:destroy,state=3

;end of script

Try removing those and see what happens.

ALSO
Don't forget your description, because I did not notice one above...

desc = you need this line above the states


Edit
One more note: Try posting for script help in the scripting forum instead of chat and you will proabably get faster responses.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 10th Aug 2009 05:20 Edited at: 10th Aug 2009 05:21
I'm not sure that this will work either, since you keep restarting the timer and it never gets to =400.

Quote: ":state=0:lookatplr,timerstart,state=0
:state=0,timergreater=400:Settargetname=kbar,lookattarget,timerstart,state=1"


Brian.

Login to post a reply

Server time is: 2024-10-12 21:26:49
Your offset time is: 2024-10-12 21:26:49