19 lines
503 B
Lua
19 lines
503 B
Lua
dofile("data/scripts/utilities.lua")
|
|
|
|
function OnPlayerSpawned(player_entity)
|
|
-- Remove original cape
|
|
local had_cape = false
|
|
local player_child_entities = EntityGetAllChildren(player_entity)
|
|
if player_child_entities ~= nil then
|
|
for i, child in ipairs(player_child_entities) do
|
|
if EntityGetName(child) == "cape" then
|
|
EntityKill(child)
|
|
had_cape = true
|
|
break
|
|
end
|
|
end
|
|
end
|
|
|
|
-- TODO: add tail
|
|
end
|