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 / Problem/first time script

Author
Message
HomegrownKodi
15
Years of Service
User Offline
Joined: 30th Jul 2009
Location:
Posted: 31st Jul 2009 00:14
Hey Everyone,
With FPSC (You might of guessed because of the scripting) I have found myself working on a project that requires me to do some of my own scripting. It's about time I actually learnt the the script anyway. xD

Maybe it's because I tried something to fast, before I really understood how the script worked, but I have already hit a wall.

I am trying to script an entity (a box in this case, however I will probably use it on other entitys throughout the game.) to "fling" to the left when a player enters a trigger zone.

For the trigger zone I am using the default "plrinzoneactivateused.fpi" script, but I have had a try at writing the script for the entity to do this. It doesn't work and I have tried working several different things, and have also worked from other script examples.

Here is my script
"
;Artificial Intelligence Script

;Header

desc = Simple FORCELEFT Example

;Triggers

:state=0,activated=1:state=1,forceleft=100
"

I would like some help to figure out where I am going wrong and also some advice on avoiding such mistakes when scripting in the future!

Sorry if my mistake is very obvious. :/
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 31st Jul 2009 00:56
did u write the name of the box entity to the (If Used) property in the trigger zone?

HomegrownKodi
15
Years of Service
User Offline
Joined: 30th Jul 2009
Location:
Posted: 31st Jul 2009 02:05
Quote: "did u write the name of the box entity to the (If Used) property in the trigger zone?"


Yeah, I done that, but it still doesn't seem to be working.
I'm also using Ply's mod, and Airmod, if that could mean anything :/
Earthpig_jr
15
Years of Service
User Offline
Joined: 31st Mar 2009
Location:
Posted: 2nd Aug 2009 21:25
did you pick up the box and press enter

Login to post a reply

Server time is: 2024-11-25 05:26:37
Your offset time is: 2024-11-25 05:26:37