I have a .sqf file for an Ai base on the map which contains some TrapTripwireGrenade in it.
These traps do spawn on every restart but they do not explode if stepped on.
How can I make these TrapTripwireGrenade armed ?
Example from .sqf:
I see within the database, if I manually place a trap 'in-game' it comes up as having inventory [["armed",false]] so perhaps I need to set something within the above code to state that it is armed ?
Many thanks for any help you can offer
These traps do spawn on every restart but they do not explode if stepped on.
How can I make these TrapTripwireGrenade armed ?
Example from .sqf:
Code:
_vehicle_518 = objNull;
if (true) then
{
_this = createVehicle ["TrapTripwireGrenade", [11496.147, 11443.168, 0.00039672852], [], 0, "CAN_COLLIDE"];
_vehicle_518 = _this;
_this setPos [11496.147, 11443.168, 0.00039672852];
};
I see within the database, if I manually place a trap 'in-game' it comes up as having inventory [["armed",false]] so perhaps I need to set something within the above code to state that it is armed ?
Many thanks for any help you can offer