Author Topic: Adding objects to liberty unleashed?  (Read 3626 times)

2204

  • Newbie
  • *
  • Posts: 46
  • Karma: +4/-2
    • View Profile
Adding objects to liberty unleashed?
« 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!
Things to do:
Make a stunting server

Shadow.

  • Tester
  • Full Member
  • ****
  • Posts: 144
  • Karma: +16/-35
    • View Profile
Re: Adding objects to liberty unleashed?
« Reply #1 on: February 01, 2014, 02:25:17 pm »
CreateObject( id, Vector(x,y,z) );

MetalLuigi77

  • Newbie
  • *
  • Posts: 44
  • Karma: +5/-1
  • Tacos are healthy.
    • View Profile
Re: Adding objects to liberty unleashed?
« Reply #2 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!

SugarD

  • Asshat Gaming Founder
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Adding objects to liberty unleashed?
« Reply #3 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.

2204

  • Newbie
  • *
  • Posts: 46
  • Karma: +4/-2
    • View Profile
Re: Adding objects to liberty unleashed?
« Reply #4 on: February 08, 2014, 10:50:53 am »
CreateObject( id, Vector(x,y,z) );
Thanks, but is there a way to rotate them??
Things to do:
Make a stunting server

Shadow.

  • Tester
  • Full Member
  • ****
  • Posts: 144
  • Karma: +16/-35
    • View Profile
Re: Adding objects to liberty unleashed?
« Reply #5 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.

 

© Liberty Unleashed Team.