Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Commands->Set_Position()
Commands->Set_Position() [message #466391] Thu, 19 April 2012 15:55 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
it doesnt work for all objects?

it does work for players but ive used it on a "gunboat" with his model changed but it wont move at all


Owner of kambot TT server

kambot.freeforums.org
Re: Commands->Set_Position() [message #466408 is a reply to message #466391] Fri, 20 April 2012 05:42 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3813
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
My guess is your code was aiming at the wrong object, as there isn't any game object I've seen that Set_Position doesn't work on. I know a lot of build servers used gunboats which changed models as their building blocks, so I am very sure that gunboats do work.

Re: Commands->Set_Position() [message #466414 is a reply to message #466391] Fri, 20 April 2012 07:18 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Whether Set_Position works depends on what object type the object is.

If it is any of the following object types AND it has a valid physics object (i.e. Peek_Physical_Obj() returns a valid value), Set_Position will work on it:
Beacon
C4
Cinematic
Mendoza Boss
PowerUp
Raveshaw Boss
Sakura Boss
SAMSite
Simple
Soldier
Special Effects
Vehicle

It will not work on any other object types including spawners or tiles.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Commands->Set_Position() [message #466440 is a reply to message #466391] Sat, 21 April 2012 07:52 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
Whats Peek_Physical_Obj() is it the same as Peek_Physical_Object()?


and how do i test for a valid value?


Owner of kambot TT server

kambot.freeforums.org
Re: Commands->Set_Position() [message #466442 is a reply to message #466391] Sat, 21 April 2012 08:26 Go to previous message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Yes, I meant to type Peek_Physical_Object() and if it returns zero there is no valid phys object otherwise there is.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Previous Topic: timers little question
Next Topic: cant get animations to work
Goto Forum:
  


Current Time: Mon Dec 30 10:37:30 MST 2024

Total time taken to generate the page: 0.00746 seconds