Home   Help Search Login Register  

Author Topic: Question About "Enemy" Command  (Read 520 times)

0 Members and 1 Guest are viewing this topic.

Offline RT-SuperTron

  • Members
  • *
  • Prey...you will be
Question About "Enemy" Command
« on: 09 Jun 2003, 05:04:14 »
And again IÂ'm surfing around the forum and Edcenter to search for answers to new questions. So 2 questions pop up..

1. How does the "Enemy" command work. Will I have to assign an array or side as "Enemy" before I can use that command..The ComRef dosnÂ't really help out here..

2. How do I retrive the value of "KnowsAbout"..

Im using this for fine tuning of a script, I would like to make the following work:

?[_stalker knowsAbout Enemy]

Hint Format ["Value of KnowsAbout:%1",_val]

Thanks in advance..

[RT]SuperTron
+- PAIN IS YOUR FRIEND, IT WILL REMIND YOU THAT YOU ARE ALIVE -+

Komuna

  • Guest
Re:Question About "Enemy" Command
« Reply #1 on: 09 Jun 2003, 10:35:43 »
_val = _stalker knowsabout _enemy

Hint Format["KnowsAbout Value: %1",_val]

*KnowsAbout returns a value between 0 and 4.
*Use < ? XKnowsAboutY : > for checking if a certain unit has detected another...

Bye ;)

deaddog

  • Guest
Re:Question About "Enemy" Command
« Reply #2 on: 09 Jun 2003, 19:18:19 »
There is no "enemy" command.  "Enemy" is a side, like West, East, etc.

You can use it with the Countside function.

Offline RT-SuperTron

  • Members
  • *
  • Prey...you will be
Re:Question About "Enemy" Command
« Reply #3 on: 09 Jun 2003, 23:37:40 »
Thanx for the info guys, im gonna look into it right away..

[RT]SuperTron
+- PAIN IS YOUR FRIEND, IT WILL REMIND YOU THAT YOU ARE ALIVE -+