hi Lafette II ,
im sure not the Lua scripter that AmenMoses is by far ,
but this little lua script might work and be simple to set and place
and function and need to know nothing at all about the relative
position of the object you want to cause the players death.
Your other script can handle all the animation of the spears
and this one will kill him for sure , or you can change the damage
ammount to lessen his health with each hit.
You just place a TriggerZone to cover the are you want to effect the player
and add this script to it and Voila !...he dies and restarts.
let me know if it works for you at all if you want to give it a try.
save it as
killingzone.lua
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- UNIRD12B
-- Player Dies if in this area.
-- just put down a triggerzone marker to cover the area where
-- the player will be damaged and he will die and restart at playerstart or last marker
function killingzone_init(e)
end
function killingzone_main(e)
if g_Entity[e]['plrinzone']==1 and g_PlayerHealth > 0 then
HurtPlayer(e,1000)
end
end
Thx
UNIRD12B
Let\'s actually make something happen with this one !