Home   Help Search Login Register  

Author Topic: salutes...  (Read 1380 times)

0 Members and 1 Guest are viewing this topic.

TAPNKEGS

  • Guest
salutes...
« on: 24 Aug 2002, 22:43:52 »
Is there a way to have a unit salute as you drive by him in a jeep into a base??    or perhaps have a unit standing by a helo and when you approach it he salutes..?

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:salutes...
« Reply #1 on: 24 Aug 2002, 22:48:33 »
name the unit....

the place atrigger that is activated by the unit u want the unit to salute (group the trigger to the unit who gets saluted)

then in the onactivation field type:

unitname playmove "effectstandsalute"
Proud Member of the Volunteer Commando Battalion

DeusRich

  • Guest
Re:salutes...
« Reply #2 on: 25 Aug 2002, 02:48:48 »
thats not bad, if u want em to salute, and stay saluting until they die.....

If you are familiar with scripting, then you can write a simple script that will make sure they are facing the jeep when they salute, then they salute for a period of time, then rest... exactly how it should be

1. make a trigger, and have its condition to salutingguy1 <5 theguywhogetssaluted

2. in on activation, type: [salutingguy,theguywhogetssaluted,theguysjeep[/i] exec "salute.sqs"

3.alt-tab out of operation flashpoint, then go to the mission directory (C:/Codemasters/Operation Flashpoint/users/urusername/missions/missionname) and create a text file (.txt) called salute.txt. (you may have to change file extensions to visible, do this by going to tools, folder options, view, show hidden files and folders)

4. open the text file and write the following:

Code: [Select]
_saluter = _this select 0
_salutee = _this select 1
_jeep = _this select 2

?(_salutee in _jeep):goto "targetjeep"
_saluter dowatch _salutee
_saluter playmove "effectstandsalute"
~2
_saluter playmove "EffectStandSaluteEnd"
goto: "last"

#targetjeep
_saluter dowatch _jeep
_saluter playmove "effectstandsalute"
~2
_saluter playmove "EffectStandSaluteEnd"
goto: "last"

#last
exit

phew...

5. rename the file salute.sqs

6.create as many triggers you need with each individual saluter's name in the salutingguy1 <5 guywhogetssaluted

test...

also, you can change the trigger so it is set to once, or repeatedly

anyway,m my brother is drunk, screaming its his go, smiling at me thinking hes clever and outsmarting every1, im just too embarresed so will go to sleep instead... hes been banned to tell u the truth, hes making long distance phone calls to make up for it tho *shakes head dissaprovingly*

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:salutes...
« Reply #3 on: 25 Aug 2002, 11:25:36 »
although to make that eeeeeeeeeeeven easier just type this in the on deactivation field of the same trigger i spoke of beforeL:

unitname playmove "effectstandsaluteend"

now thats a bit easier than that big script :thumbsup:
Proud Member of the Volunteer Commando Battalion