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 / is this script correct?

Author
Message
JAZZIST productions
15
Years of Service
User Offline
Joined: 8th Apr 2010
Location:
Posted: 7th Dec 2010 10:54
;gaurd enemy

;Header

desc = enemy on patrol

:waypointstate=0:waypointstart,animate=52
:waypointstate=3:waypointnext,animate=52
:waypointatate=5:waypointreverse,animate=52
:waypointatate=5:waypointrandom,animate=52
:state=0,plrcanbeseen:state=1
:state=1:rotatetoplr,waypointstop,animate=51,shootplr,state=2




is this correct, is there a spelling mistake or an incorrect condition/action?

thanks

I PLAY JAZZ!
i know, i'm a very problemed child...
Omegamer
16
Years of Service
User Offline
Joined: 25th Feb 2009
Location: There
Posted: 7th Dec 2010 13:48
Do you have problems with it?

Play to life,Life to play!!!
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 7th Dec 2010 16:55
Quote: ":state=1:rotatetoplr,waypointstop,animate=51,shootplr,state=2"


Notice you're having the script go to state 2 on this line. State 2 doesn't exist, so once there the entity will stop functioning. Remove the state=2 action and you should start seeing results.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
JAZZIST productions
15
Years of Service
User Offline
Joined: 8th Apr 2010
Location:
Posted: 7th Dec 2010 21:08
thanks Plystire, you are the one who tought me how to script in the first place (i read your tutorials, they were the best).

the script works perfectly now...

I PLAY JAZZ!
i know, i'm a very problemed child...
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 7th Dec 2010 21:25
Happy to help.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.

Login to post a reply

Server time is: 2025-06-04 20:47:23
Your offset time is: 2025-06-04 20:47:23