Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Hi I am coding in Scol the functions for ''Set Driving'' and ''Set Directional'' to disable or enable the vehicle's drive wheels in the physics vehicle plugin. However I don't really know how to configure it for each wheel.
fun cbDriving(inst, from, action, param, reply, obstr)=
let if (atoi param) == nil then 0 else (atoi param) -> state in
set obstr.PVEHICLE_bDriving = state;
0;;
fun cbDirectional(inst, from, action, param, reply, obstr)=
let if (atoi param) == nil then 0 else (atoi param) -> state in
set obstr.PVEHICLE_bDirectional = state;
0;;
Offline