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 / Having a problem with my script

Author
Message
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 29th May 2006 20:42
Ok, I have been trying to make a Script for enemies which are invisible until the Player gets close to them. Then the enemy becomes visible and uses melee attacks. It does not seem to work though. Here is my script:

However, when I use the script on an enemy they just stand there, perfectly visible all the time and do nothing at all but stand there. Anyone know what i'm doing wrong here?

Tom

Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 30th May 2006 01:52
don't run FPI... you should allways have the entire script in one file... (don't shootplr either or runfpidefault=4)

Next, use 100 or greater, 50 means that the plr has to be breathing down his neck.

Again, preset the alphafade, don't constantly set it

:state=0:setalphafade=0,state=1
:state=1,plrdistwithin=100:setalphafade=100,state=2
:state=2:followplr
:state=2,plrdistwithin=100:state=3
:state=3,random=90:plraddhealth=-10,state=2
:state=3,random=60:plraddhealth=-5,state=2
:state=3,random=45:plraddhealth=-7,state=2
:state=3,random=30:plraddhealth=-3,state=2

Set as main, if enemy isn't invisible and still attacks, then enemys apearntly can't be invisible. If nothing happens, then there is a weird script bug somewhere...

We all have our inner noob. Join the NJL, and have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.

Login to post a reply

Server time is: 2024-11-22 15:07:41
Your offset time is: 2024-11-22 15:07:41