dervin13
Active Member
- Joined
- Apr 26, 2008
- Messages
- 458
- Solutions
- 1
- Reaction score
- 28
Hello, if somebody could help me i'd be very greatfull
I'm trying to use this battle field event but I think there's some error in the function onDeath/prepare death, because when player is almost to Die the weapon dont give any hit anymore.
lib functino ondeath
creatuescripts code onpreparedeath
thanks
I'm trying to use this battle field event but I think there's some error in the function onDeath/prepare death, because when player is almost to Die the weapon dont give any hit anymore.
Lua - Battlefield Event [latest TFS]
I salvaged this script from another datapack and I want to make it work perfectly but I need help. What it does How to start the event Globalevent every 12:30 and 00:30 ingame. Talkaction by tutor or higher with /btf Entering the teleport Puts you into a random team. Sets your outfit to...
otland.net
lib functino ondeath
Code:
function Battlefield:onDeath(player, killer)
local info = self:findPlayer(player)
if not info then return false end
if killer and killer.getName then
local killerInfo = self:findPlayer(killer)
if killerInfo and killerInfo.team ~= info.team then
local killerTeam = self.teams[killerInfo.team]
killerTeam.kills = killerTeam.kills + 1
end
end
self:onLeave(player)
return true
end
creatuescripts code onpreparedeath
Code:
function onPrepareDeath(player, killer)
local info = Battlefield:findPlayer(player)
if info then
Battlefield:onDeath(player, killer)
end
return false
end
thanks
Last edited: