Car


car_gas_amount

sfall.h

int car_gas_amount()

Returns current amount of fuel in player’s car (between 0 and 80000). Note: To change fuel amount, use vanilla function: metarule(METARULE_GIVE_CAR_GAS, amount) - amount can be positive or negative.

This is a macro, you need to include sfall.h to use it.


set_car_current_town

void set_car_current_town(int town)

Changes the current town index for the player’s car.


set_car_intface_art

sfall.h

void set_car_intface_art(int artIndex)

Changes the interface art (index in LST file) for the car image on worldmap screen. Should be called before going to worldmap. Vanilla art index is 0x1B1.

This is a macro, you need to include sfall.h to use it.