inject script runtime!
inject script runtime!
Can we inject an script file, either compiled or uncompiled, in the game during the runtime?
Re: inject script runtime!
Depends what you mean but I think the answer is no. No one has written a code injector for GTA2. It could be done but I can't do it.
- Gustavob
- Immortal
- Posts: 407
- Joined: 18 May 2009, 21:40
- GH nick: Gustavob
|Gustavob| - Location: Nowhere.
- Contact:
Re: inject script runtime!
You can launch a scriptfile in-game, for example when you answer a telephone.
But it just works if you have the uncompiled script of the map you are trying to do this, wich means you cant do this in Downtown and Residential Districts, only in Industrial and maps made by players with the *.mis file released.
It is used in Industrial District I think
I think you have to do like this:
Create a folder with the name of the original script
Then create the script you want to launch ingame and compile it
Put it on that folder
In the uncompiled script, put something like this:
As the command says, its used for missions, althoug I think it doesnt work only for missions; but keep in mind that im not sure.
But it just works if you have the uncompiled script of the map you are trying to do this, wich means you cant do this in Downtown and Residential Districts, only in Industrial and maps made by players with the *.mis file released.
It is used in Industrial District I think
I think you have to do like this:
Create a folder with the name of the original script
Then create the script you want to launch ingame and compile it
Put it on that folder
In the uncompiled script, put something like this:
Code: Select all
LAUNCH_MISSION (filename)
You just lost the game.