Hi there! I've recently started working on my custom level again, and of course I'm having problems scripting some actions.
For example, I'm trying to give the player a pistol when he gets in a car I've previously created
This is the code I'm currently using:
COUNTER rupistol_taken = 0 //OTHER STUFF WHILE ((IS_CHARACTER_IN_CAR(rookiebulwark, QUENTIN)) AND (rupistol_taken = 0))) GIVE_WEAPON (QUENTIN, COLLECT_00, 15) SET rupistol_taken = 1 ENDWHILE
Of course, it doesn't work.
After trying for about an hour and changing random parts of the code (I'm using THIS DOCUMENT as an example) I managed to make the code "work", but I also had to change COLLECT_00 to PISTOL, which allows me to compile the code. However, once in the game, it doesn't work.
Now, I know this is normal because GTA2 code doesn't follow any logic rule and code may (not) work depending of totally random facts like the number of clouds in the sky, but I would like to find an explanation to this, if it is possible to find any. Probably the code I'm using now is totally wrong, but I've been working on it for a lot of time, and I even managed to get it compiled and it was pretty similiar to this.