mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
parent
5c3d7a1a74
commit
f579588c00
@ -108,6 +108,7 @@ for "_i" from 0 to _this do {
|
||||
_ammoObj setVectorDirAndUp _worldspace;
|
||||
_ammoObj setposATL _location;
|
||||
_baseObj setVariable ["EPOCH_TRAP_OBJ",_ammoObj];
|
||||
_baseObj addEventHandler ["Explosion", {(_this select 0) setDamage 1}];
|
||||
};
|
||||
|
||||
// set persistent Animations
|
||||
|
@ -58,6 +58,7 @@ if (_objSlot != -1) then {
|
||||
_ammoObj = createVehicle [_ammoClass, [0,0,0], [], 0, "CAN_COLLIDE"];
|
||||
_ammoObj attachTo [_newObj,[0,0,0]];
|
||||
_newObj setVariable ["EPOCH_TRAP_OBJ",_ammoObj];
|
||||
_newObj addEventHandler ["Explosion", {(_this select 0) setDamage 1}];
|
||||
};
|
||||
|
||||
_newObj setDamage _damage;
|
||||
|
Loading…
Reference in New Issue
Block a user