Home   Help Search Login Register  

Author Topic: removing player actions  (Read 420 times)

0 Members and 1 Guest are viewing this topic.

j-man

  • Guest
removing player actions
« on: 13 Jun 2004, 04:00:26 »
Is there a way to remove all actions from a player ??? When the player gets into a chopper, all actions are removed so that he can't eject and stuff like that. And I don't just want to lock the helicopter.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:removing player actions
« Reply #1 on: 13 Jun 2004, 07:18:16 »
Try the disableuserinput command.

:beat: *Gets Shot* :beat:

Offline Wadmann

  • OFPEC Patron
  • ****
  • I'm the next evolutionary step after a llama!
Re:removing player actions
« Reply #2 on: 13 Jun 2004, 07:39:04 »
Hey j-man!

There is a removeaction command but read up on actions in the pinned topic in the Editing/Scripting: General section (Time for Action or something like that). It could relate to the last post on the first page where they refer to a maninvehicle.hpp (?) or the last page where the actions are listed. The removeaction works on an indexed number that I have never seen a reference to. As per the addaction in the ComRef:

Quote
Action ID should be returned, but due to bug it is not. To determine action ID use following algorithum: first action added to given vehicle has ID zero, next has ID one, ect.

You are on your own from here, I'm afraid. Hopefully a sharper knife in the drawer can pick up where I left off and get this solved for you!

                                                 Wadmann
Check out my Camouflage Collection! New items added 31 July 2005.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:removing player actions
« Reply #3 on: 13 Jun 2004, 11:59:57 »
removeAction works only on actions added with addAction command.  It does not work (AFAIK) on hard coded actions.

It is unlikely that you can do what you want:  this is not mission design, it is interfering with how the game is played and in general there's no way of doing that.  Armsty's suggestion might work though ... remember to enable it later...

What's the underlying question?   What are you trying to achieve?
Plenty of reviewed ArmA missions for you to play