TuPP3,
Greetings. This should get the job done. This hybrid script maintains the blinking of your mine,
and incorporates dealing damage to the player.
;Artificial Intelligence Script===================================================================
;Header
desc Proximity Mine
;Original Scripting By CE Black Bullet Games & TuPP3
;Hybrid Script Modification By Seth Black
;This script will cause the proximity mine to disappear when the player gets within 40 units of it.
;To get it to actually explode:
;1. Create a small, invisble entity with low health, that can explode. Set object's strength to
;only about about 1.
;2. Place it over the proximity mine you want to explode, BOTH objects must have EXPLODE enabled.
;3. Use a trigger zone or plrdistwithin script to spawn the small object.
;It will now appear that the proximity mine explodes, when the player steps on it.
;4. This script is a hybrid. In addition to the above, it will now blink a red light, as player
;gets closer to the mine.
;Triggers
:state=0:state=2
:plrdistwithin=40:sound=audiobankexplodeexplode1.wav,rundecal=6,triggerforce=100,state=6
:state=2:timerstart,state=3
:state=3,timergreater=100:alttexture=1,timerstart,state=4
:state=4,timergreater=100:alttexture=0,timerstart,state=3
;Note: plraddhealth=x value on next line adjusts damage player receives from proximity mine.
:state=6:plraddhealth=-25,destroy
;End of Script====================================================================================
It's not perfect, but defaulted, it will deal out
25 points of damage,
display eyehud.dds,
display
an explosion, and
cause the mine to diappear.
I'm glad to see the creativity that's coming from you. Really good stuff! Please do keep up the great
works!
Thanks,
Seth Black
"...I'm sorry, could you repeat your question a little louder? I'm a trifle deaf in this ear."
- Willie Wonka