|
 |
|
|
|
|
|
GTA Modification Forums
Opcode 02DD How to use it?
 |
|
 |
| |
GTA-Roloboy  |
|
Player Hater

Group: Members
Joined: May 1, 2007

|
Hey, I am using a SCM hook written in C++ and I am not sure how to use the opcode 02DD (get_random_actor) in Vice City http://www.gtamodding.com/index.php?title=02DDI tried several ways such as: | CODE | DWORD* pFoundActor = NULL; ScriptCommand(&get_random_actor, "VICE_C", 1, 1, 1, &pFoundActor);
SCRIPT_WAIT(100);
ScriptCommand(&set_actor_bleeding, pFoundActor, 1);
|
but the game seems to crash when using it. Help is appreciated, thanks This post has been edited by GTA-Roloboy on Wednesday, Aug 22 2012, 22:10
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
GTA-Roloboy  |
Posted: Wednesday, Aug 8 2012, 21:15
|
Player Hater

Group: Members
Joined: May 1, 2007

|
| QUOTE (Link2012 @ Wednesday, Aug 8 2012, 15:11) | | You can check if a DWORD is -1, compiler will accept and in reality will check if the DWORD is 4294967295. |
I just debugged it and the value it returns is -1, tho I am creating the actor myself so I wonder why it doesn't find it? | CODE | ScriptActor* pActor = NULL; ScriptActor* pActor2 = NULL;
pActor = new ScriptActor(pMission); pActor->Spawn(1, 4, -1017.0488f, 200.2007f, 11.2556f); //81.9790f
ScriptCommand(&get_random_actor, "VICE_C", 1, 1, 1, &pActor2);
|
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|
|
|
|