Home   Help Search Login Register  

Author Topic: Auto salute script  (Read 762 times)

0 Members and 1 Guest are viewing this topic.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Auto salute script
« on: 11 Feb 2005, 05:16:38 »
hey


i really need this script for a number of missions im making

i need a script that has 2 variables

lower rank(lr) and  return salute(option 0 = dont return, 1 = do return)

when a lower rank unit comes within 7 meters of a higher rank unit the lower rank unit will salute the higher rank unit without turning or looking at him, just staying the direction he is facing. I need the lower rank unit to hold the salute for about 4 seconds. if return salute is set to 1 then the higher rank unit will salute him back but if it is set to 0 then he will just ignore it.

[man1,0] exec"salute.sqs"

man1 is the lower rank unit, 0 means the higher rank unit will not salute him back.

[man2,1] exec"salute.sqs"
man2 is the lower rank unit, 1 means the higher rank unit will stop, go into safe mode if he isint already, return the salute, then go into aware mode and continue his waypoints.

basicly what im mostly using it for is a gaurd at the entrance to a base, and the base has jeeps men and other stuff passing in and out and everytime the gaurd is near a unit of higher rank then he will salute him as he enters or exits the base


i hope u understand what i mean

thanks in advance
penguin

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Auto salute script
« Reply #1 on: 12 Feb 2005, 02:06:40 »
don't think it will work the way you are suggesting it, because afaik you can't get a unit's rank

UNN

  • Guest
Re:Auto salute script
« Reply #2 on: 12 Feb 2005, 15:23:50 »
HateR_Kint was working on some Rank functions:

http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=19621

It appeared to work quite well, not sure if he got round to finishing it?