Home   Help Search Login Register  

Author Topic: action-prob  (Read 1669 times)

0 Members and 1 Guest are viewing this topic.

Trasher

  • Guest
action-prob
« on: 17 Aug 2004, 10:07:59 »
ok i just want W2 to have the action but anyone near him gets it heres the scripts

W2s init;

W2 addaction ["Call for air strike","Bombing.sqs"]

Bombing.sqs;

onMapSingleClick {[_pos] exec "airstrike.sqs"}; strikePilot sideChat "Give me a target"

and then the airstrike scrips goes

plz help its very anoying because i just want the radio operator to use it =(

Offline Mud_Spike

  • Contributing Member
  • **
Re:action-prob
« Reply #1 on: 17 Aug 2004, 10:11:45 »
One solution, which does not remove the action from other units though (dont know if thats possible):
Code: [Select]
if (_this select 1 != myRadioOperator) then { myRadioOperator GroupChat "HEY, GET YOUR FILTHY HANDS OFF MY RADIO"  ; exit }
[foo] exec "airscript.sqs"

Syntax not guaranteed.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:action-prob
« Reply #2 on: 17 Aug 2004, 11:02:56 »
This is a "feature" of actions:   they are available to any unit who is close to the object (namely you) that has the action attached to it.      

There is nothing you can do about it appearing, though as Mud_Spike suggests you can prevent other units from using the action.
Plenty of reviewed ArmA missions for you to play

Trasher

  • Guest
Re:action-prob
« Reply #3 on: 17 Aug 2004, 11:17:49 »
but when you play Cti only the commander have the Build menu even if you are close to him you dont get it!  if nobody knows how this is working i try the hands of radio thingy  ;)  anyways thx

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:action-prob
« Reply #4 on: 17 Aug 2004, 11:24:41 »
Well, if you know a mission where it works then unpbo it and see how its done.    I'd be delighted to be proved wrong on this.
Plenty of reviewed ArmA missions for you to play

Trasher

  • Guest
Re:action-prob
« Reply #5 on: 17 Aug 2004, 11:28:02 »
i will check this out but it will be hard because cti i just a script-mess  :-[

Trasher

  • Guest
Re:action-prob
« Reply #6 on: 17 Aug 2004, 11:42:11 »
sry macguba it to advanced for me i dont understand a s**t  it just execs new scripts all the time =( sry i let you down  :'(

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:action-prob
« Reply #7 on: 17 Aug 2004, 11:55:54 »
Lol don't worry m8, at least you tried.    :thumbsup:
Plenty of reviewed ArmA missions for you to play

Trasher

  • Guest
Re:action-prob
« Reply #8 on: 17 Aug 2004, 12:07:36 »
well well cant you explain that "Get your hands of the radio" thingy a little bit more detailed i give it a try  :D

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:action-prob
« Reply #9 on: 17 Aug 2004, 14:53:15 »
easy just like that (ill put the script in beter way w/ explenation ;))

Code: [Select]
if (_this select 1 != _this select 0) then { _this select 0 GroupChat "HEY, GET YOUR FILTHY HANDS OFF MY RADIO"  ; exit }
[foo] exec "airscript.sqs"

if (_this select 1 != _This select 0) : this part checks the condition.... so if the man that choose the action (_this select 1) is not the man that theaction is attached 2 (used the addaction on, _This select 0) the man who got the radio (_this select 0) will say the groupchat and then the script will exit.... else it will continue w/ watever u put in the script

:cheers:

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

Trasher

  • Guest
Re:action-prob
« Reply #10 on: 17 Aug 2004, 18:01:28 »
ok should i put in the units name somewhere ?? and they are not in the same group so can i change to Sidechat ?? anyway that helped =)

Offline Mud_Spike

  • Contributing Member
  • **
Re:action-prob
« Reply #11 on: 17 Aug 2004, 18:38:50 »
Quote
ok should i put in the units name somewhere ??
No, with LCD's addition you dont need to keep track of who owns the action.

Quote
and they are not in the same group so can i change to Sidechat
Changing it to a SideChat, GlobalChat, or whatever will work just fine.

Trasher

  • Guest
Re:action-prob
« Reply #12 on: 19 Aug 2004, 15:04:42 »
ok this is a little bit embarrasing but that part
with foo who is he??? i dont get it??? this is a little bit to hard to me im a "semi-n00b"  ;)

[foo] exec "airscript.sqs"

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:action-prob
« Reply #13 on: 19 Aug 2004, 20:28:47 »
Just replace 'foo' with whatever name you gave your unit or group.


 foo was just an example name.

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

Trasher

  • Guest
Re:action-prob
« Reply #14 on: 20 Aug 2004, 17:12:29 »
ok heres one of the final parts i dont get should this be another script or should it be in the Bombing.sqs ?? anyways thx