Home   Help Search Login Register  

Author Topic: Seeing  (Read 528 times)

0 Members and 1 Guest are viewing this topic.

calm_terror

  • Guest
Seeing
« on: 23 Nov 2003, 17:30:23 »
Ok what I want is to have a C2 bird flying at like 200m and to watch over the combat zone. it cna see all the enemy units. now what i want is all the friendly units to see what the c2 bird sees. you know like how you know what is around other units in your squad. IE see them on the map.
how can I do this?

Unnamed

  • Guest
Re:Seeing
« Reply #1 on: 23 Nov 2003, 23:10:17 »
Just setup a detected by trigger that follows the C2 around, then use the List command on the trigger to get all the units it can see.

Once you have the list of detected units just use the reveal command or DoWatch the units, for all of your guys and the detected enemy.

There are extra bits you can add to detect unknown units and remove enemy detected by other friendly units.

I worte a function to do something similar, I would not say it's advanced. But you would need to know some scripting and how to use functions.

I could send it to you if you want?

calm_terror

  • Guest
Re:Seeing
« Reply #2 on: 24 Nov 2003, 11:17:09 »
yeah post it.
would not mind looking at it
thanks

Offline revellion

  • Contributing Member
  • **
    • My Website
Re:Seeing
« Reply #3 on: 24 Nov 2003, 12:45:01 »
i got an Snippet for it that you could use

first some code
Code: [Select]
;name: UpdateTrigger.sqs

_unit = _this select 0
_triggername = _this select 1

#loop

_triggername setpos getpos _unit

~0.2
goto "loop"


that script is too be in the C2's Initfield: [this,*TRIGGER's NAME*] exec "UpdateTrigger.sqs"

and in the Trigger should be setted as:___

Repeating
East detected by West
Name: *TRIGGER NAME for the SCRIPT*Ex: "Trigger1"

On Activation: [thislist] reveal (leader player) or On Activation: (leader player) reveal [thislist]

dont remember fully ;)
long time since using those the: Reveal command
« Last Edit: 24 Nov 2003, 12:47:37 by revellion »
Best Logistic Addons and Missions: www.TheChainOfCommand.com