How can I change the vehicle data script settings?

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
User avatar
Sektor
Boss
Boss
Posts: 1458
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: How can I change the vehicle data script settings?

Post by Sektor »

You need to create the player and the car. You also you need a LEVELEND.

Are you trying to give vehicle machine gun to all APCs or just a specific one?

This script will check every vehicle the player enters and if it's an APC then it will make it rocketproof and give it vehicle gun.

Code: Select all

// ste.gmp ste.sty apc.scr


PLAYER_PED p1 = (35.0, 212.0, 255.0) 25 0
PARKED_CAR_DATA specific_apc = (36.0, 212.0, 255.0) 0 0 APC

CAR_DATA any_apc
COUNTER loop = 1

LEVELSTART

WHILE ( loop = 1 )

STORE_CAR_CHARACTER_IS_IN (p1,any_apc)

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

ENDWHILE

LEVELEND
dltmdwns156
Mugger
Mugger
Posts: 19
Joined: 01 Jun 2025, 07:51

Re: How can I change the vehicle data script settings?

Post by dltmdwns156 »

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?
User avatar
Sektor
Boss
Boss
Posts: 1458
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: How can I change the vehicle data script settings?

Post by Sektor »

are you running bil.scr? It's the 3rd area if choosing from singleplayer or you can launch it directly in gta2manager debug tab using skip frontend
dltmdwns156
Mugger
Mugger
Posts: 19
Joined: 01 Jun 2025, 07:51

Re: How can I change the vehicle data script settings?

Post by dltmdwns156 »

Image

If I check it like the picture above and run GTA2, it says "Unable to open file: ₩ style.style" and it doesn't work
User avatar
Sektor
Boss
Boss
Posts: 1458
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: How can I change the vehicle data script settings?

Post by Sektor »

You need to type in bil.gmp, bil.ste and bil.sty into 3 different places. I’ll let you figure out where.
Post Reply