Files
2023-03-27 09:26:04 -06:00

11 lines
288 B
Lua

local NPC_CUSTOM = 400119
local WANDER_RADIUS = 5
function CustomNPC_OnSpawn(event, creature)
creature:SetDefaultMovementType(1)
creature:SetWanderRadius(WANDER_RADIUS)
creature:MoveRandom(WANDER_RADIUS)
end
RegisterCreatureEvent(NPC_CUSTOM, 5, CustomNPC_OnSpawn)