• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Creating Combat in a CreatureScript. One creature artificially damages another.

Homeslice

-anoyn/Rage the Mage
Joined
May 9, 2010
Messages
112
Solutions
2
Reaction score
66
Location
Canada
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
 
Back
Top