Home   Help Search Login Register  

Author Topic: Actions  (Read 548 times)

0 Members and 1 Guest are viewing this topic.

RedHouse

  • Guest
Actions
« on: 11 Jun 2005, 13:26:07 »
Lets say I add an action to a guy. for example guy1 addAction ["Options.sqs", "options1.sqs"]
And say if guy2 came near guy1 he gets guy1's action in his menu. How can I stop other peoples actions being in other peoples menus when they are close to each other.

And I cant use a sqs to check when they are near and remove the action because the situation is 4 people start rideing on the back of a tank. And you use the "Get Off" action to jump off the back of the tank. But because you are all close to each other you get everyone elses "Get Off" action.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Actions
« Reply #1 on: 11 Jun 2005, 13:29:10 »
as far as i know there's no way to do this. you can certainly disable who uses whose 'get off' action, but there's no way to get rid of the redundant actions from the menu, other than removing them completely from the others.

even if only the player has the action, accessing the other units' action menus will show it up at the top...  :-\
« Last Edit: 11 Jun 2005, 17:02:39 by bedges »

RedHouse

  • Guest
Re:Actions
« Reply #2 on: 11 Jun 2005, 13:35:09 »
ok im gonna have to completly change it, maybe i could add the action to the tank, that way all the units would only see one get off action. then link the write scripts with the write units by determineing who trigerd the action.

RedHouse

  • Guest
Re:Actions
« Reply #3 on: 11 Jun 2005, 13:53:08 »
problem if i add the action to the tank i dont think the people r close enough to the tank to get the actions

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re:Actions
« Reply #4 on: 11 Jun 2005, 21:09:48 »
Go to the Editors Depot's Latest & Greatest - Pending - Triggers, scripts and addAction in multiplayer, submitted by me. Info is originally from Kegetys.

There might be some help to your problem at the end of that tutorial.

I hope that helps you to get the actions working properly.
« Last Edit: 11 Jun 2005, 21:12:57 by Baddo »

RedHouse

  • Guest
Re:Actions
« Reply #5 on: 12 Jun 2005, 11:51:35 »
Thanks, I cant believe I didnt think of that. It definatly is the awnser but I dont want all the players to have the action. So ill put a check in like this

Code: [Select]
? player = unit1: unit1 addAction ["Get Off", "getoff.sqs"]