Search the Community
Showing results for tags 'pos'.
Found 3 results
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?