Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » On JFW_Preset_Buy_Poke Teleport to Location or Vehicle
Re: On JFW_Preset_Buy_Poke Teleport to Location or Vehicle [message #230205 is a reply to message #230169] Sun, 12 November 2006 17:08 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
Other than MDB_Remote_Control there are no scripts which make a player become a vehicles driver (or none that I have found).

I had to code my own scripts for this, although they are tied into a different system.


Basically you use Create_Object() to make the vehicle (or Create_Vehicle if you want to use the factories), then use Set_Position on the infantry to move them to the exact same position as the vehicle (Use Get_Position to get the vehicles position). Finally, use Soldier_Transition_Vehicle() on the player to make them enter the vehicle.

BEWARE: You should have at least a one second gap between creating the vehicle and putting the driver in, or it sometimes wont work. You can use less than one second, but generally 1 second seems to be the minimum time needed for ~100% success rate.


http://steamsignature.com/card/1/76561197975867233.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Nuetral
Next Topic: A box truck
Goto Forum:
  


Current Time: Tue Dec 24 19:28:40 MST 2024

Total time taken to generate the page: 0.01075 seconds