Liberty Unleashed
Liberty Unleashed => Liberty Unleashed Chat => Topic started 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!
-
CreateObject( id, Vector(x,y,z) );
-
And also, you'll be able to add new Objects into your game in the next update!
-
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.
-
CreateObject( id, Vector(x,y,z) );
Thanks, but is there a way to rotate them??
-
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.