-
Notifications
You must be signed in to change notification settings - Fork 4
func_vehicle_custom
GeckoN edited this page Jan 31, 2017
·
2 revisions
func_vehicle_custom is a port of Counter-Strike's func_vehicle. To use this vehicle in your map, you'll have to create a script for your map:
#include "func_vehicle_custom"
void MapInit()
{
VehicleMapInit( true, true );
}
Place the script in svencoop_addon/scripts/maps and give it a name, for example my_map_script. The extension should be ".as".
In the map cfg for your map, enter the following command:
map_script <name>
For example, map_script my_map_script.
- Passing true as the first parameter to VehicleMapInit will register the hooks used by the entity automatically.
- Passing true as the second parameter to VehicleMapInit will add debug chat commands.
- The API used for vehicles will be reworked, so don't rely on it yourself. If you are only using the entity, you shouldn't have anything to worry about.