Jump to content
Sign in to follow this  
meninoaloprado

Need help with adding new structures

Recommended Posts

So, title says everything, I've seen people adding new structures to their Experimental servers like towers, walls and everything, how exactly do I do that so I can add some to my server? Are they using some kind of tool to add these or what? I'd really like to basically customize my map for my Roleplay server, please help me out <3
 

Thanks for the attention by the way.

Share this post


Link to post
Share on other sites

In init.c main

GetGame().CreateObject( "Land_City_FireStation", "4201.21 338.487 10940.5", false, false );

I'm not aware of any editor yet but you can change cords/class names for building.

Share this post


Link to post
Share on other sites
On 10/10/2018 at 11:47 PM, KILLJOY13 said:

In init.c main


GetGame().CreateObject( "Land_City_FireStation", "4201.21 338.487 10940.5", false, false );

I'm not aware of any editor yet but you can change cords/class names for building.

So, I basically got it but I apparently can't rotate the building, is there an extra code or something that I need to do to possibly rotate the building?

Share this post


Link to post
Share on other sites

cast the object with a name

Object myObject;
myObject = GetGame().CreateObject(.....
myObject.SetRotation("0 0 0"); // Rotation is a Vector

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×