Search the Community
Showing results for tags 'pos'.
Found 4 results
-
Getting a position towards the movement of a unit/vehicle?
LSValmont posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
So I have been using this fnc to control the movement of dog agents: vRunnerChargeFeral = { params["_dog","_dogSpawnPos","_runner","_dogTarget"]; _pos = getPos _dogTarget; switch (true) do { case (speed _dogTarget > 2 && speed _dogTarget < 4): {_pos = _dogTarget modelToWorld [0,3,0];}; case (speed _dogTarget > 4 && speed _dogTarget < 6): {_pos = _dogTarget modelToWorld [0,7,0];}; case (speed _dogTarget > 6 && speed _dogTarget < 10): {_pos = _dogTarget modelToWorld [0,12,0];}; case (speed _dogTarget > 10 && speed _dogTarget < 15): {_pos = _dogTarget modelToWorld [0,16,0];}; case (speed _dogTarget > 15): {_pos = _dogTarget modelToWorld [0,20,0];}; default {_pos = _dogTarget modelToWorld [0,1,0];}; }; if (isAgent teamMember _runner) then { _runner moveTo _pos; } else { _runner doMove _pos; }; }; }; The problem is that when the _dogTarget is walking/running backwards the Dogs never reach the target. Is there any way to get a position towards the direction of the movement of a unit instead of the direction of the unit itself? -
[Question] basic building patrol script help
lordfrith posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
i'm trying to make a really simple building patrol script using doMove and an array of building pos. theory is unit will move to building pos, and do amibient anim until next do move is received. the debug hints show that its selecting new pos and unit ok but never seems to complete or fail domove. unit will maybe move once then never does new Domove orders. this is possibly issue with slightly buggy cargo tower building pos but i'll post function here is anyone can see anything stupid i'm doing? -
Hello. I am using this script to get all the cities into an array, then make a marker on them. 95% of the time it works, and then rarely it just creates a marker at [0,0,0] and then the script is just useless. Help, please. tasknumber = ["task1","task2","task3", etc ... ]; publicVariable "tasknumber"; publicVariable "current_tasknumber"; publicVariable "current_task"; cities = nearestLocations [getPosATL officer_jeff, ["NameCity"], 25000]; publicVariable "cities"; _city = cities call BIS_fnc_selectRandom; _citypos = locationPosition _city; _citymarker = createMarker ["citymarker", _citypos]; current_taskmarker = _citymarker; current_tasknumber = tasknumber call BIS_fnc_selectRandom; [west,[current_tasknumber],["Clear out the area","Clear out",current_task],[0,0,0],true,2,true,"attack",true] call BIS_fnc_taskCreate; [current_tasknumber,current_task]call BIS_fnc_taskSetDestination; [current_tasknumber]call BIS_fnc_taskSetCurrent; ....spawn enemies etc ...
-
Hello, I'm using RscMapControl to display a Map in a Dialog. With "ctrlMapAnimAdd" i can move the map focus to the given coords but how can i read the currend map focus from the control? Does it work with "ctrlMapScreenToWorld " maybe?
-
- rscmapcontrol
- pos
-
(and 1 more)
Tagged with: