Vehicle Simulator

From Platinum Arts Sandbox Free 3D Game Maker
Jump to: navigation, search

Quick Overview

The vehicle simulator shipped with Sand Box is a semi-realistic vehicle simulator. It also has an advance yet simple to use scripting system.

Adding Vehicles

Adding vehicles to the vehicle simulator module is simple, to add a vehicle locate the file "vehicles.cfg" in "data/krs" and add a line depending on what you want your vehicle to be named, and set jumping flag, jump velocity maxspeed, price to purchase, and the model location.

The syntax looks like this: addvehicle [name][model][canjump][jumpvel][maxspeed][traction][price] so an example would be: addvehcile "sandbox" "vehicle" 1 200 500 12 200.

The above example will add an vehicle names "sandbox", that loads a vehicle model from "packages/models/vehciles/vehicle", enables jumping at a velocity of 200, with a max acceleration speed of 500, and a traction percentage of 12, all for the price of $200.

Compiling The Module

For Window users, there is a provided .cbp file located in "src/windows", this file is a Code::Blocks project file, if you do not already have Code::Blocks I suggest you download it from here [1]. Once you have it installed or if you have it installed open up the project file, locate the "build" label on the strip menu and "select target->krs". After you have completed these steps, proceed to compile by holding CTLR and pressing F9.

Purchase A Vehicle

Purchasing a vehicle can be done through the menu(Dealer-Ship), or using the console command. Assuming you have enough money to purchase the vehicle, the game will automatically assign you that vehicle.

buyvehicle "NameOfVehicle"

Selecting A Vehicle I Own

Selecting a vehicle you already own, can be done through the menu(Player-Info), or using the console command. Assuming you own that vehicle the game will automatically assign you that vehicle.

selectvehicle "NameOfVehicle"

Selling A Vehicle

Selling a vehicle you own, can be done through the menu(Dealer-Ship), or use the console command. Assuming you own that vehicle the game will reimburse, you the full amount of money as the vehicle cost.

sellvehicle "NameOfVehicle"

Checking What Vehicles I Own

You can return a list of vehicle you own by using the console command.

myvehicles