Home   Help Search Login Register  

Author Topic: Group move SingleMapClick  (Read 1660 times)

0 Members and 1 Guest are viewing this topic.

captain caffeine

  • Guest
Group move SingleMapClick
« on: 01 May 2003, 03:49:20 »
 My first script , Be honest, Has 10 different text responses by group leader(s)  to move command, had to be creative with somethings since the WPPos command and marker commands still elude me. RESISTANCE REQUIRED

 NOGOVA -Mission-GMSC
 START -Click onRadio -SingleClick On Map Where You want Group to move to

Zip not working properly will also copy here for ya to have a look at

;Thanks to Skumball for his  Airstrike script which broke down and altered for this implication
;Thanks to  BlackFeather for the random example , which gave me a little more understanding of how to use the command
;Many thanks to OFPEC and BIS for making this One Nifty game ,
; I do not take any credit for this script since I basically broke down two others and edited and tested until I got the proper results
;RESISTANCE REQUIRED
;You may take this script apart and alter or improve it in any way you see fit
;If you have any problems with the script DONT USE IT
;1Begin Example , Located on Nogova, Once mission begins Click on radio, No fancy Wording on Radio just click on Bravo, then move cursor to pos on map and single click
;repeat as many times as you would like  twelve total Group leader responses in text to move pos
; I hope someone with advanced scripting knowledge will Improve greatly upon this script since it has great potential
;If this script Harms your Computer in any way DONT BLAME ME, OFPEC OR BIS
; HAVE FUN
;Edited By captaincaffeine



onMapSingleClick {}

_pos = _this select 0
_group = _this select 1
_object = _this select 2


_leader = leader _group
_aunits = units _group
_dis = _leader distance _object


#START

_object setPos _pos

_getpos = getpos _object

_lpos = getpos leader _group


_number = Random 10
? ((_number mod 1) >= 0.5): _number = _number + 1
_number = _number - (_number mod 1)

? _number == 0 :leader _group sidechat "Roger Base, proceeding now to designated location";goto "move"
? _number == 1 :leader _group sidechat "Copy Base, coordinates recieved , moving as ordered";goto "move"
? _number == 2 :leader _group sidechat "Copy that Base, we are enroute";goto "move"
? _number == 3 :leader _group sidechat "Copy, we are now moving to target area";goto "move"
? _number == 4 :leader _group sidechat "Base, we are checking coordinates and moving out";goto "move"
? _number == 5 :leader _group sidechat "HQ , we are now inbound  for target";goto "move"
? _number == 6 :leader _group sidechat "Roger HQ";goto "move"
? _number == 7 :leader _group sidechat "Copy Base";goto "move"
? _number == 8 :leader _group sidechat "Roger Base, Heading to throw a suprise party";goto "move"
? _number == 9 :leader _group sidechat "Copy that ,getting bearings and proceeding";goto "move"
? _number == 10 :leader _group sidechat "Base, instructions recieved moving on";goto "move"

# move

~5

_group setCombatMode "YELLOW"
_group setSpeedMode "NORMAL"
_group setFormation "COLUMN"

_group move _getpos

#READY

~2



goto "READY"




« Last Edit: 01 May 2003, 05:01:20 by captain caffeine »