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
On JFW_Preset_Buy_Poke Teleport to Location or Vehicle [message #230169] Sun, 12 November 2006 11:50 Go to next message
WNxCABAL is currently offline  WNxCABAL
Messages: 1391
Registered: July 2004
Karma: 0
General (1 Star)
Hiya,
Just playing around with JFW_Preset_Buy_Poke, managed to create a preset on poke, that was easy. However I would like for the player to teleport to outside the vehicle (Daves Arrow Object ID or XYZ location) or become the driver by default(Not Remote Control).

I've tried adding JFW_Teleport_Custom to the terminal and typing in the Object ID (Leaving Location & Message blank or 0), however nothing seems to happen. With this I was expecting the player to teleport to a location (outside the vehicle) and not to be the driver of the vehicle.
I was unable to find a script to send me to the vehicle as driver.

Any Suggestions on what I can try?

Cheers,
Andy


Warrior Nation Number One Gaming Clan In The World Razz

http://www.tibnas.com/Outbound_Images/wnxcabal_cabalcc3kw_sig_ani.gif
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 next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
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
Re: On JFW_Preset_Buy_Poke Teleport to Location or Vehicle [message #230918 is a reply to message #230169] Fri, 17 November 2006 16:57 Go to previous messageGo to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
cant you just save the player status, and make the charachter control the vehicle (player model changes to the vehicle), and when the player presses E the save is read and he can exit the vehicle. once he exits the vehicle the script can be discarded as everything is normal from there on.
i havent got the faintest clue for scripting so i dont know if it works.


WOL: Veyrdite Previously: Dthdealer ( a long time ago )
Re: On JFW_Preset_Buy_Poke Teleport to Location or Vehicle [message #230925 is a reply to message #230169] Fri, 17 November 2006 17:49 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
unfortunately not, I did look into several commands to see if I could figure out a way of doing it, but it does not seem possible to explicitly place a player in the drivers seat of a vehicle, the best workaround I was able to find was, as shown above, to transport the player into the same place as the vehicle and fake them pressing E to enter it. That was based on how MDB_Remote_Control works.

http://steamsignature.com/card/1/76561197975867233.png
Re: On JFW_Preset_Buy_Poke Teleport to Location or Vehicle [message #230935 is a reply to message #230925] Fri, 17 November 2006 18:37 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3813
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Ya, I thought I posted that the easiest way to do it would be to modify the script "MDB_Remote_Controlled_Vehicle", but I don't see it so I must have hit the wrong button or something.

Previous Topic: Nuetral
Next Topic: A box truck
Goto Forum:
  


Current Time: Mon Dec 23 16:02:56 MST 2024

Total time taken to generate the page: 0.00641 seconds