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 / Am I reading this correctly??

Author
Message
alpha117
15
Years of Service
User Offline
Joined: 3rd May 2009
Location: UK, Lincolnshire
Posted: 4th May 2009 14:59
I have been trying to get an entity to find character and then shot him. When i test this out the entity turns into the wall and trying running into the wall.
What have i missed here??

Regards

;Triggers

:state=0:state=1
:state=1,losetarget=5:state=10
:state=1,plrcanbeseen,plrdistwithin=800:state=20
:state=1,shotdamage=1:rotatetoplr,state=20
:state=1,random=20:rotateheadrandom=55
:state=1:animate=2,movefore=2.5

:state=10,random=1:state=11
:state=10:rotatey=90,animate=2,movefore=2.5,state=0
:state=11:rotatey=-90,animate=2,movefore=2.5,state=0

:state=20,plrcanbeseen:state=21
:state=21,plrcanbeseen:settarget
:state=21,plrcannotbeseen,losetarget=1:state=10
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 4th May 2009 17:36
Hmm. Your code is a little messy, but I dont recall if you can use decimals. (=2.5)

I think that by default you can find a bunch of fpi character scripts already in the scriptbank. You can get good examples from them.
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 7th May 2009 18:06
Unhelpful Titles

Please do not simply write "Noob Question", "I am a newb", "One Noobie Question", "A question", "Please help", "This isn't working" or anything similar as the title of your post. We have a search facility, and meaningless titles do not help others find answers to their questions. It will also help you to get quicker responses if people have an idea of your thread content.

Login to post a reply

Server time is: 2024-11-25 01:37:40
Your offset time is: 2024-11-25 01:37:40