Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- boltTarget = cursorTarget;
- targetPos = position cursorTarget;
- BUCK_fnc_boltGun =
- {
- private ["_boltTarget", "_targetPos"];
- _boltTarget = _this select 0;
- _targetPos = _this select 1;
- _bolt = createVehicle ["LightningBolt", [_targetPos select 0, _targetPos select 1, _targetPos select 2], [], 0, "CAN_COLLIDE"];
- _boltVis = createVehicle ["Lightning1_F", [_targetPos select 0, _targetPos select 1, _targetPos select 2], [], 0, "CAN_COLLIDE"];
- _bolt setDamage 1;
- sleep 0.5;
- deleteVehicle _boltVis;
- sleep 0.5;
- deleteVehicle _bolt;
- };
- boltGun = player addEventHandler ["Fired",
- {
- boltTarget = cursorTarget;
- if (isNull boltTarget) then
- {targetPos = screenToWorld [0.5,0.5]}
- else
- {targetPos = position cursorTarget};
- NULL = [boltTarget, targetPos] spawn BUCK_fnc_boltGun;
- player sideChat format ["Cursor Target + %1", boltTarget];
- }];
- stopAc = player addAction ["Remove Zeus Mode", {player removeEventHandler ["Fired", boltGun]; player removeAction stopAc}];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement