Search the Community
Showing results for tags 'fire mission'.
Found 2 results
-
I try to script simple mortar shooting to marker "attached" to the player. The idea is to give the possibility to evade the mortar barrage if the player is moving and not camp on one place. First I make a marker called "mortar_barrage" and make it change its position to player position every 20 sec. in initPlayerLocal.sqf : while {true} do { sleep 10; "mortar_barrage" setMarkerPos (getPos player); }; So far so good, works well. Then I make a trigger which fires if the enemies detect player. On activation : _mortargrp = createGroup [east, true]; _mortargrp setBehaviour "COMBAT"; _mortar = [(getMarkerPos "mortar_1"),350,"I_G_Mortar_01_F",_mortargrp] call BIS_fnc_spawnVehicle; _mortar commandArtilleryFire [(getMarkerPos "mortar_barrage"), "8Rnd_82mm_Mo_shells", 3]; But it does not want to shoot! I tried to make waypoint like _wp1 = _mortargrp addWaypoint [(getMarkerPos "mortar_barrage"),0]; _wp1 setWaypointType "SCRIPTED"; _wp1 setWaypointScript "A3\functions_f\waypoints\fn_wpArtillery.sqf"; Does not work too ... What is wrong? 🙄
-
How to create trough scripting each of the | (marked) waypoints ? _________________________| \|/
- 2 replies
-
- lift cargo
- drop cargo
-
(and 3 more)
Tagged with: