Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » :S Hostage Script help..
Re: :S Hostage Script help.. [message #350724 is a reply to message #349332] Sat, 13 September 2008 12:09 Go to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
I would assume it crashes because you set the controller ID to the ID of the hostage, instead of the controller.

		sprintf(params,"1,1,100,10,2,1000,%d,2020",Commands->Get_ID(hosty1));


Should be using Get_ID on the hovercraft controller object, which requires you to change the code that creates the hovercraft controller object so that you have the GameObject* for that object stored in a variable.

But, since I didn't make, and have never used, these scripts, I couldn't say for sure, I am just guessing based on the comment about using the ID of the controller.


http://steamsignature.com/card/1/76561197975867233.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MP-SP? CO-OP?
Next Topic: melee attacks
Goto Forum:
  


Current Time: Wed Dec 04 00:36:35 MST 2024

Total time taken to generate the page: 0.00683 seconds