Jump to content

smanuk

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About smanuk

  • Rank
    On the Coast
  1. I'm currently working on a modded server for DayZ which I'm going to be adding buildings to the map using "Not A Banana's" two mods BuilderItems and BuilderStatics. To do this currently I have the init.c setup like this which spawns the building on load just fine. //Spawn helper function void SpawnObject( string type, vector position, vector orientation ) { auto obj = GetGame().CreateObject( type, position ); obj.SetPosition( position ); obj.SetOrientation( orientation ); //Force collision update vector roll = obj.GetOrientation(); roll [ 2 ] = roll [ 2 ] - 1; obj.SetOrientation( roll ); roll [ 2 ] = roll [ 2 ] + 1; obj.SetOrientation( roll ); } void main() { //Custom Spawned Objects //Belota SpawnObject("Land_Mil_ATC_Small", "5068.464844 18.783197 2477.377686", "142.000000 0.000000 0.000000"); ... I've been trying to work out but with no luck how I can put the custom spawned object into there own file and include it into this so it's easier to do area's and keep track but all I keep getting is errors saying I'm missing this and that.
×