I compiled it with the above in the "bil.mis" file and it was successful because the "bil.SCR" file was created. So I overwritten the "bil.SCR" file into the GTA2 data folder, but it didn't work on the game... Is there anything I missed?
I tried it, but first of all, the script that was written and compiled in bil file was not applied to the game, but when I compiled it with my own file, it was applied. Is there anywhere I should write when I put a script in the bil.mis file? I wrote it at the bottom when I wrote it.
And I have more questions. When I saw it on the game, it was unlimited, but is there a script that limits the quantity and consumes it?
I didn't know you were adding to the existing bil.mis
You can't just put it at the end, that code will never run because it's outside the existing WHILE ENDWHILE loop. You also shouldn't have more than one LEVELSTART and LEVELEND.
Before the existing LEVELSTART, put CAR_DATA any_apc
Yes, I applied it as you said, and it's finally applied to the game. Thank you.
But looking at it, I'm inquiring because it's applied like this.
1. It doesn't apply to all APC armored vehicles, it only applies to vehicles with players. How do I apply the script to all APCs in the game?
2. When you get into a vehicle, you get a vehicle weapon, and it's unlimited. I wrote the ammunition count, for example, "50" at the back of the script
If you ride in a real game, it changes to 50 and then 99 without limit.
How do you limit and consume weapon ammunition?
it gives 50 multiple times because it runs in a loop.
You can make it only give the weapon once by using the HAS_CAR_GOT_WEAPON check.
IF (NOT(HAS_CAR_GOT_WEAPON(any_apc,car_machine_gun)))
IF (CHECK_CAR_MODEL (any_apc,APC))
SET_CAR_FLAMEPROOF (any_apc, ON)
SET_CAR_BULLETPROOF (any_apc, ON)
SET_CAR_ROCKETPROOF (any_apc, ON)
GIVE_WEAPON (any_apc, car_machine_gun)
ENDIF
ENDIF
Actually that will probably give 50 ammo again once it runs out, didn't test it.
Applying that to all APCs and not just player APCs is difficult to do without crashing. I'll think about it later, it will require adding 188 to known CAR_DATA variables but since cars spawn and vanish, it's tricky to do in GTA2 script without crashing the game.
Still, the unfortunate thing is that you can't smash another vehicle like a tank. I can't do this with the script and STY TOOL, right? I can only do it with the video I posted earlier, right?