Register a custom chat command on the local machine.
| _command | Chat command STRING |
| _code | Code to execute after command was entered. <CODE> |
| _availableFor | ”all”, “admin” or “adminLogged” (optional, default: “admin”) STRING |
| _thisArgs | Arguments to pass to event chat handler code <ANY> |
| _return | true: Success, false: Error <BOOLEAN> |
// '#skipTime 12' will make it night
["skipTime", {parseNumber (_this select 0) remoteExec ["skipTime"];}, "admin"] call CBA_fnc_registerChatCommand;
// "Detonate" will blow up the charge
["Detonate", {_thisArgs setDamage 1}, "admin", _placedDemoCharge] call CBA_fnc_registerChatCommand;commy2