Jump to content

Tallbird fort spawn command.


Recommended Posts

Hello guys, i have my world with over 300 days. However no tallbird fort has spawned. I do have a mod that can spawn in when generating the world but i need it to spawn in already created world at certain location. Im sure it is possible to spawn it via command. Is here any guy who knows something about codding and would be able to put such command together ? I would be very greateful for that. Thanks for replies.

It is possible, I know this command from @fall211:

sp="tallbird_rocks" angle=0 s=16 is=256 ca=angle/180.*math.pi cc=math.cos(ca) cs=math.sin(ca) pos=ThePlayer:GetPosition() rt=require("map/static_layouts/"..sp) for k,v in pairs(rt.layers[2].objects) do dx=(v.x-is)/s dz=(v.y-is)/s x=cc*dx+cs*dz z=-cs*dx+cc*dz u=SpawnPrefab(v.type) u.Transform:SetPosition(pos.x+x,0,pos.z+z) end

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...