Scolring - Forum

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.

#26 17-Sep-2024 23:40:38

samiux
Member
Registered: 4-May-2018
Posts: 313

Re: Make code with Notepad++, Gedit, Emacs or Bluefish

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

Board footer

Powered by FluxBB