mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
17 lines
450 B
Plaintext
17 lines
450 B
Plaintext
// by commy2
|
|
#include "script_component.hpp"
|
|
|
|
params ["_item", "_position", ["_damage", 0]];
|
|
TRACE_3("params",_item,_position,_damage);
|
|
|
|
// randomized end position
|
|
_position = _position vectorAdd [1 - random 2, 1 - random 2, 0];
|
|
|
|
_item = createVehicle [_item, _position, [], 0, "NONE"];
|
|
_item setPosASL _position;
|
|
|
|
["fixCollision", _item] call EFUNC(common,localEvent);
|
|
["fixPosition", _item] call EFUNC(common,localEvent);
|
|
|
|
_item setDamage _damage;
|