Josan12 said:So can we script a melee item to cause the
'cut in half' death sequence?
MIB88 said:Josan12 said:So can we script a melee item to cause the
'cut in half' death sequence?
It's not really a scripting issue. I am pretty sure that it can't be done like you want.
I mean, the type of damage that is given to the hit critter is determined in the weapon's proto file. And I am pretty sure that something in the engine sees the type of damage dealt and, if the critter is either critically hit or otherwise receives a hit causing it to die, then the proper death animation is played. I think a sword deals normal damage. However, that 'cut in half' animation is from laser damage. Wouldn't really work unless you changed that sword, then, to deal laser damage.
MIB88 said:Josan12 said:So can we script a melee item to cause the
'cut in half' death sequence?
It's not really a scripting issue. I am pretty sure that it can't be done like you want.
I mean, the type of damage that is given to the hit critter is determined in the weapon's proto file...
MIB88 said:Wait. I just had an idea. Maybe this can be scripted. I'd have to test this. Maybe I can add a code to a script that says if the critter is killed (or killed critically) while using the sword, then the 'cut in half' animation could be triggered. However, if the proper code was created, it would need to be added to EVERY human critter script.