Link Search Menu Expand Document

Car

Functions


car_gas_amount

sfall.h

int car_gas_amount()

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


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 intrface.lst) for the car image on the world map interface
  • Should be called before going to the world map
  • Vanilla art index is 433