Liberty Unleashed

Liberty Unleashed => Liberty Unleashed Chat => Topic started by: 2204 on January 31, 2014, 02:53:09 am

Title: Adding objects to liberty unleashed?
Post by: 2204 on January 31, 2014, 02:53:09 am
hey LU! I was wondering Is there a way to add objects to my server that im making? Im really confused and cant figure it out, and I know theres a list of object ids so i presume its possible, but how would i go about doing it? Can anyone help? Thanks so much!
Title: Re: Adding objects to liberty unleashed?
Post by: Shadow. on February 01, 2014, 02:25:17 pm
CreateObject( id, Vector(x,y,z) );
Title: Re: Adding objects to liberty unleashed?
Post by: MetalLuigi77 on February 02, 2014, 12:36:37 am
And also, you'll be able to add new Objects into your game in the next update!
Title: Re: Adding objects to liberty unleashed?
Post by: SugarD on February 06, 2014, 03:02:32 pm
And also, you'll be able to add new Objects into your game in the next update!
That depends on whether it is 0.1.1.0 or another one of the 0.1.0.x branch. Also, currently only III and VC-based objects are planned to be supported at the moment.
Title: Re: Adding objects to liberty unleashed?
Post by: 2204 on February 08, 2014, 10:50:53 am
CreateObject( id, Vector(x,y,z) );
Thanks, but is there a way to rotate them??
Title: Re: Adding objects to liberty unleashed?
Post by: Shadow. on February 08, 2014, 12:52:34 pm
Code: [Select]
function CreateObjectEx( model, x, y, z, rotx, roty, rotz )
{
           local obj = CreateObject( model, Vector( x, y, z ) );
           obj.Angle = Vector( rotx, roty, rotz );
}

You might aswell use .RotateTo instead of .Angle but that will not rotate the object instantly.