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 / My first short script... need help...

Author
Message
Frag Monkey
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location:
Posted: 2nd Mar 2007 00:51
Well after spending some time learning how to create scripts, I tried making my own little one, except it won't work...

It is a script where if the player can be seen, the entity will follow. If not, he will do nothing.



What is wrong with this? I put myself and a character in a map and I assign his main to my script, yet he does nothing when I walk up to him...

Yes this seems very stupid but if I don't ask, I'll never learn...
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 2nd Mar 2007 04:12 Edited at: 2nd Mar 2007 04:42


The rest is redundant.

:state=0:,plrcannotbeseen:state=1 (the colon after :state=0 is wrong)
:state=1:none

Imagine if you start the game and the player cannot be seen. State is changed to 1 and never returns to 0, never allowing the character to follow the player.

Best.

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

Frag Monkey
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location:
Posted: 3rd Mar 2007 00:04
aha... thanks for the help

Actually now that I thought it through it makes perfect sense and I realize the stupidity of my ways

Login to post a reply

Server time is: 2024-11-23 11:43:36
Your offset time is: 2024-11-23 11:43:36