Home   Help Search Login Register  

Author Topic: knowsabout command  (Read 904 times)

0 Members and 1 Guest are viewing this topic.

solitosnake

  • Guest
knowsabout command
« on: 11 Dec 2005, 19:16:34 »
im having problems with my realistic patrol mission. its supposed to be a surveillance mission. what do i write in triggers to make it activate when i, the player sees something? is there something which can make the objective activate when i right click on a target?

thanks in advance!

Offline hardrock

  • Members
  • *
  • Title? What's that?
    • Operation FlightSim
Re:knowsabout command
« Reply #1 on: 11 Dec 2005, 19:25:21 »
Using the 'detected by' option maybe?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:knowsabout command
« Reply #2 on: 11 Dec 2005, 19:37:20 »
Welcome to the forum!

I'm not sure how well this will work with a human unit rather than an AI loon, but yes you could just use a "detected by" trigger.

If you want to be more specific - that is, if the player has to detect a specific unit rather than just a side - then the knowsAbout command is probably the way to go.

Trigger:-
Condition:    playerGrp knowsAbout loon1 > XXX
On activation:   as you like

Syntax not guaranteed. I can't remember what XXX should be but there are some good writeups on knowsabout kicking around.   Try the forum the tutorials and the FAQ in the Editors Depot.   I know its a chore using all the different search functions ....
« Last Edit: 11 Dec 2005, 19:42:16 by macguba »
Plenty of reviewed ArmA missions for you to play

solitosnake

  • Guest
Re:knowsabout command
« Reply #3 on: 11 Dec 2005, 19:58:05 »
wow. bloody thank you. the navy seals have to detect an enemy unit. an officer, making an arms deal. i post here if it works or if not. thanks for the quick replies!

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:knowsabout command
« Reply #4 on: 11 Dec 2005, 19:59:42 »
If you want to check if the player knows about one or more units in a particular group try putting this in the trigger's condition field:

{player knowsabout _x > 0.105} count units groupname > 0

Where groupname is the name of the group you want to check that the player knows about.  If you want to check on more that one group try:


{player knowsabout _x > 0.105} count (units groupname1 + units groupname2 ...) > 0

Not tested and I am now in that nice Sunday pre-dinner state of relaxed inebriation so who knows!

solitosnake

  • Guest
Re:knowsabout command
« Reply #5 on: 11 Dec 2005, 20:04:44 »
more specific: its on tonal, and i know there are the same units on both east and resistance side. so if i make east and resistance friendly to each other, they wont shoot at each other. and if hes the onlt res. soldier in the mission, it will only activate when i right click on him. because the map is filled with east patrols.  do you think that will work? or is it too unreliable?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:knowsabout command
« Reply #6 on: 11 Dec 2005, 20:12:38 »
Sounds like it should work.   Certainly worth a try.
Plenty of reviewed ArmA missions for you to play

solitosnake

  • Guest
Re:knowsabout command
« Reply #7 on: 11 Dec 2005, 20:36:22 »
yes it works. good and thanks for the help!