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 / somebody check this script

Author
Message
Slayer Simon
18
Years of Service
User Offline
Joined: 11th Oct 2006
Location:
Posted: 10th Dec 2006 02:57
state=0:animate=1
state=0,plrdistwithin=50:rotatetoplr,state=1,timerstart
state=1:lookatplr
state=1,timergreater=3000:waypointstart,state=2
state=2,waypointstate=3:waypointnext,state=3
state=3,waypointstate=5:activateifused=1,state=4,timerstart
state=4:animate=1
state=4,timergreater=5000:lookatplr
state=4,timergreater=6000:resethead
state=4,timergreater=10000:rotatetoplr,state=5,timerstart
state=5:lookatplr
state=5,timergreater=3000:waypointstart,state=6
state=6,waypointstate=3:waypointnext,state=7
state=7,waypointstate=5:state=0

This script is basically used to make a guy stand beside a control panel. When the player comes close to him, he walks to another control panel and looks at the player alot.

It doesn't work. There must be something I don't know.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 10th Dec 2006 03:10
Every line should start with a colon.

I'm sorry, my answers are limited. You must ask the right question.

Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 10th Dec 2006 06:42
It appears to be transitional, and the command-action structure is correlative, allowing the transitions to execute. So, as mentioned, the only impediment I sight is the absence of prefixed colons infront of the conditional statements.

Wisemen are hard to find, they are tarnished by sayings and quotes that are not of their true nature.
Slayer Simon
18
Years of Service
User Offline
Joined: 11th Oct 2006
Location:
Posted: 11th Dec 2006 02:40
Oops, sorry. I wrote this script from scratch at 11:00 at night.

Think I need to slap myself for this one
G4fan
18
Years of Service
User Offline
Joined: 21st Oct 2006
Location: in my car, driving on and on. . .
Posted: 22nd Dec 2006 14:44 Edited at: 22nd Dec 2006 15:07
I'm no scripting expert,(more of a noob than anything) but I think on your second line of code,

Quote: "state=0:animate=1
state=0,plrdistwithin=50:rotatetoplr,state=1,timerstart
state=1:lookatplr"


You say: when the player is within 50 units, the entity will rotate to the player and then initiate state 1; state 1 says

Quote: "state=1:lookatplr"


However, the timerstart command comes after state=1. I'm no genius, but I think that nothing allows the script to start the timer. That variable might effect your fourth line of code with waypoints.

Best of Luck,
G4fan

My first game: "Wars of Crime"-31% completed

Login to post a reply

Server time is: 2024-11-23 07:14:58
Your offset time is: 2024-11-23 07:14:58