Home   Help Search Login Register  

Author Topic: Radio  (Read 722 times)

0 Members and 1 Guest are viewing this topic.

Offline tonnerheim

  • Members
  • *
  • I'm a llama!
Radio
« on: 05 Jul 2003, 12:27:29 »
Here we go, a new radio question...
What do I do to make a trigger detect if player or player group has radio?

If I then want radio messeges to show up as text during the mission as long as the radio is in the group?

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Radio
« Reply #1 on: 05 Jul 2003, 12:33:14 »


Well, if the radio is a NAMED 'weapon', then you can use this command :


      YerName hasWeapon "WeaponName"

as condition...  :) Or :

      "_x hasWeapon ""WeaponName"" "  foreach YourGroup




Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Radio
« Reply #2 on: 05 Jul 2003, 13:02:51 »
tombygot syntax prob :noo: :tomato: :moon:

Quote
"_x hasWeapon ""WeaponName"" "  foreach YourGroup

shud b

"_x hasWeapon ""WeaponName"""  count YourGroup > 0

nd yourgroup shud wpork only if u put in da init of leader (or ny oder unit)

YourGroup = units (group this)

or if u prefer 2 use

YourGroup = (group this)

den da condition shud b

"_x hasWeapon ""WeaponName"""  count units YourGroup > 0

:booty: :beat:

:cheers:

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline tonnerheim

  • Members
  • *
  • I'm a llama!
Re:Radio
« Reply #3 on: 05 Jul 2003, 20:19:35 »
OK.
I named my group to Alpha = group this, in the Init of the leader...
Then I put the "_x hasWeapon ""WeaponName"""  count units Alpha> 0, in the condition field of the trigger....  And I have put the name of the radio in the ""weaponName"" slot...BUT!! Still no message? IÂ'm missing something....
Can someone please write an example of this?

Ex; When enemy units (east) reach a scertain point There will be an sideChat messsage that says "Enemy has reached XXXX" . But this message will be seen ONLY if the player or someone in the palyers group have the radio.

Thanks for the help guys...



Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Radio
« Reply #4 on: 05 Jul 2003, 21:13:23 »
put east present triger dere

sidechat on activision of da triger

condition 4 triger wil b

this and "_x hasWeapon ""WeaponName"""  count (units alpha) > 0

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline tonnerheim

  • Members
  • *
  • I'm a llama!
Re:Radio
« Reply #5 on: 05 Jul 2003, 21:19:56 »
Alright..
And in the "on activation", Papabear sideChat "enemy is in XXX"

Does it matter if I have "Switch" or "none" in the {type} of trigger?

Sorry for all the questions..... ::)

Edit; The 0 is it that the player has the weapon? And a 1 would be has not weapon?
« Last Edit: 05 Jul 2003, 21:21:12 by tonnerheim »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Radio
« Reply #6 on: 05 Jul 2003, 21:36:02 »
Quote
Alright..
And in the "on activation", Papabear sideChat "enemy is in XXX"

yes

Quote
Does it matter if I have "Switch" or "none" in the {type} of trigger?

no

Quote
Edit; The 0 is it that the player has the weapon? And a 1 would be has not weapon?

fda count command just counts how meny ppl in da group have da weapon so if som1 in da group have da weapon it wil b biger dan 0

if u want 2 of em 2 have it shud b biger dan 1

etc..

if u want condition 4no1 w have - itll b smaler dan 1

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta