[DiscordArchive] did you register the event?
[DiscordArchive] did you register the event?
Archived author: speedfangz • Posted: 2019-06-27T20:29:10.639000+00:00
Original source
did you register the event?
Archived author: haramman • Posted: 2019-06-27T20:30:45.298000+00:00
Original source
ya
Archived author: haramman • Posted: 2019-06-27T20:31:47.108000+00:00
Original source
```lua
local function OnSpell(event, player, spell, skipCheck)
if(spell:GetEntry() == 42995) then
spellTargetAsObj = spell:GetTarget()
spellTargetAsPlayer = spellTargetAsObj:ToPlayer()
playerName = spellTargetAsPlayer:GetName()
print(playerName)
spellTargetAsPlayer:CreateCorpse()
end
end
RegisterPlayerEvent(5, OnSpell)```
Archived author: haramman • Posted: 2019-06-27T20:33:33.926000+00:00
Original source
prints target name out fine
Archived author: haramman • Posted: 2019-06-27T20:33:40.077000+00:00
Original source
only wont create his corpse
Archived author: haramman • Posted: 2019-06-27T20:33:49.017000+00:00
Original source
unless i completely misunderstood something
Archived author: haramman • Posted: 2019-06-27T20:38:05.496000+00:00
Original source
server crashed on me and when i logged back in theres now a skeleton
Archived author: haramman • Posted: 2019-06-27T20:38:17.458000+00:00
Original source
but when i use it again it still spawns nothing