Homeslice
-anoyn/Rage the Mage
Hello
I am fixing up a revival script so player frags work correctly. Since when the player dies the script sets their health to zero, the last hit killer wont be the actual attacking player. (i made it so they receive frags in Lua, but their corpse wont display the killer. "killed by ..")https://otland.net/threads/tfs-1-2-revive-system-resurrection-spell-by-zbizu.237560/
https://otland.net/threads/tfs-1-2-revive-system-resurrection-spell-by-zbizu.237560/
So i have the target and attacking creature, i just need to find a way to damage the target creature in a creature script.
I have looked into luaCombatCreate() and luaCombatSetParameter() but it dosent seem you can set the source of the combat.
Are there any Lua functions which i can use to have one player damage another? Any ideas?
Any help is appreciated,
Thanks
I am fixing up a revival script so player frags work correctly. Since when the player dies the script sets their health to zero, the last hit killer wont be the actual attacking player. (i made it so they receive frags in Lua, but their corpse wont display the killer. "killed by ..")https://otland.net/threads/tfs-1-2-revive-system-resurrection-spell-by-zbizu.237560/
https://otland.net/threads/tfs-1-2-revive-system-resurrection-spell-by-zbizu.237560/
So i have the target and attacking creature, i just need to find a way to damage the target creature in a creature script.
I have looked into luaCombatCreate() and luaCombatSetParameter() but it dosent seem you can set the source of the combat.
Are there any Lua functions which i can use to have one player damage another? Any ideas?
Any help is appreciated,
Thanks