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 / You can't add health in a hurtzone?

Author
Message
filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 20th Nov 2006 01:05 Edited at: 20th Nov 2006 01:06
As stupid and confusing as this question seems, I can explain

I made a huge custom hurtzone. It works real well.



I also made a custom health script which works when you destroy a particular object. It works well too.



The problem starts when I place the health giving object in the hurtzone The script in the object dont work, no sounds, no health increase

Can anyone try and help me here please?

Thank you,

filya

-- game dev is fun...but taking up too much time --
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 20th Nov 2006 18:46
In your first script you have state0 and state3 going back and forth like a game of ping-pong. I don't think the entity ever gets to state1.

And in your second script, you twice forgot the backward slash.
Quote: ":state=0:sound=audiobankconcrete.wav,rundecal=0,state=1
:state=1:destroy,plraddhealth=20,plrsound=audiobankhealthup.wav
"

it should read...
Quote: ":state=0:sound=audiobank\concrete.wav,rundecal=0,state=1
:state=1:destroy,plraddhealth=20,plrsound=audiobank\healthup.wav
"


Nue B. or not Nue B. That is the question.
filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 20th Nov 2006 22:19
thanks for the help NueB

1. In the first script, it goes to state 1 only when player is in zone. Or else it toggles between state 0 and 3.

2. Those backslashes were messed up while copy pasting the script. The actual script does have them.


Also, like I said, these scripts run fine by themselves. I have tried them out.
But if I try and run the 2nd script while I am in the hurt zone, then it just hurts me, but does not heal me at all.

-- game dev is fun...but taking up too much time --

Login to post a reply

Server time is: 2024-11-26 22:04:24
Your offset time is: 2024-11-26 22:04:24