Re: :S Hostage Script help.. [message #350724 is a reply to message #349332] |
Sat, 13 September 2008 12:09 |
|
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.
|
|
|