Hi!
How can I set up the script so it will run from the action menu?
IE; when I want too?
Her's the critter:
; Patrol/Group Debug Script (Advanced)
; by toadlife (toadlife@hotmail.com)
; http://www.toadlife.net/ofp/
; Init variables: [[groupname1,groupname2],checkinterval,cameradistance,cameraheight,camrotationspeed] exec "patroldebug.sqs"
; Init example: [[group1,group2],10,15,3,0.6] exec "patroldebug.sqs"
#start
_groups = _this select 0
_checkinterval = _this select 1
_distance = _this select 2
_height = _this select 3
_camspeed = _this select 4
_camzoom = _this select 5
_groupcount = count _groups
_grouptocheck = _groupcount
goto "groupcycle"
#groupcycle
~2
_grouptocheck = _grouptocheck - 1
titletext [format["Group %1",(_grouptocheck + 1)], "plain"]
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"]
_camera camsetfov _camzoom
_time = 0
_angle = 0
_target = (leader (_groups select _grouptocheck))
#cammove
_targetpos = getpos _target
_targetposx = _targetpos select 0
_targetposy = _targetpos select 1
_targetposz = _targetpos select 2
_angle = _angle + _camspeed
_camera camsettarget getpos _target
_camera camsetpos [_targetposx + ((sin (_angle) * _distance)), _targetposy + ((cos (_angle) * _distance)), _targetposz + 15 ]
_camera camcommit 0
~0.01
?_time >= _checkinterval:goto "next"
goto "cammove"
#next
camdestroy _camera
?_grouptocheck == 0:_grouptocheck = _groupcount
_camera cameraeffect ["terminate", "back"]
goto "groupcycle"
Thanks ppl!