Home   Help Search Login Register  

Author Topic: how to define unit has no weapon?  (Read 630 times)

0 Members and 2 Guests are viewing this topic.

gundernak

  • Guest
how to define unit has no weapon?
« on: 13 Jan 2004, 22:52:03 »
hi again,

Could you help me to define that a soldier has no weapon.

It is ok as well if I can check a condition when the unit does not have M16 and M60 and M21 particularly...

How nice could be a hasNotWeapon command... ;)

HuNtA

  • Guest
Re:how to define unit has no weapon?
« Reply #1 on: 13 Jan 2004, 23:02:04 »
hmmm, something like this could work:
make a trigger, and put this in its condition:
!player hasWeapon "M16"
and then put in the activation of what U want it to do

then, make another 2 triggers which each have 1 of the following in em:
1 with
!player hasWeapon "M60"
and 1 with
!player hasWeapon "M21"

gundernak

  • Guest
Re:how to define unit has no weapon?
« Reply #2 on: 13 Jan 2004, 23:07:40 »
!unitname hasWeapon "M60" is an syntax error!

unfortunately

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:how to define unit has no weapon?
« Reply #3 on: 13 Jan 2004, 23:35:28 »
How about :

unitname !(hasweapon "M60")

Just a shot in the dark.


Planck
« Last Edit: 13 Jan 2004, 23:35:47 by Planck »
I know a little about a lot, and a lot about a little.

gundernak

  • Guest
Re:how to define unit has no weapon?
« Reply #4 on: 13 Jan 2004, 23:42:28 »
neither, no such syntax

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:how to define unit has no weapon?
« Reply #5 on: 13 Jan 2004, 23:47:55 »
Something must work....hmmmmmm

Try :

!(unitname hasWeapon "M60")

Otherwise I will have to load up the game and experiment.


Planck

I know a little about a lot, and a lot about a little.

gundernak

  • Guest
Re:how to define unit has no weapon?
« Reply #6 on: 14 Jan 2004, 00:00:19 »
 :)

do not load the game, it is working now!!!

thanks