Hello,
My goal is to spawn a suicide truck ( _shilux ) by script, and have it explode when it reaches the location ( rock1 ).
wave4_p1.sqf
_shilux = createvehicle ["B_mas_cars_Hilux_Unarmed", getMarkerPos "espawn", [], 30];
sleep 4;
_grp1 = createGroup east;
"CUP_I_TK_GUE_Soldier" createUnit [getMarkerPos "espawn", _grp1, "this moveindriver _shilux", 0.5];
sleep 3;
_wp1 = _grp1 addWaypoint [getPos rock1, 0];
_wp1 setWaypointType "MOVE";
_wp1 setWaypointSpeed "FULL";
_wp1 setWaypointCombatMode "BLUE";
_wp1 setWaypointBehaviour "CARELESS";
sleep 4;
_strigger = createTrigger ["EmptyDetector", getPos rock1, true];
_strigger setTriggerArea [0,0,0, false];
_strigger setTriggerActivation ["EAST", "PRESENT", false];
_strigger setTriggerStatements ["_shilux distance rock1 <30", "_bomb = 'M_Mo_82mm_AT_LG' createvehicle (getpos _shilux)", "hint 'Trigger off'"];
My success with this is limited; The truck follows the waypoint to rock, but does not explode.
The truck just sits there waiting
What am I missing here?
Any help would be greatly appreciated, thanks