Skip to content

Instantly share code, notes, and snippets.

@headswe
Created February 20, 2017 10:39
Show Gist options
  • Save headswe/99e74f03ccccb71893c008693eaa83d9 to your computer and use it in GitHub Desktop.
Save headswe/99e74f03ccccb71893c008693eaa83d9 to your computer and use it in GitHub Desktop.
he_cas = {
params ["_pos","_dir"];
_dummy = "LaserTargetCBase" createVehicle _pos;
_dummy enableSimulationGlobal false; _dummy hideObjectGlobal true;
_dummy setVariable ["vehicle","a10classname"];
_dummy setVariable ["type",0];
_dummy setDir _dir;
[_dummy,nil,true] call BIS_fnc_moduleCAS;
[_dummy] spawn {
sleep 10;
deleteVehicle (_this select 0);
};
true
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment