Home   Help Search Login Register  

Author Topic: Disabling Commands on Vehicles  (Read 956 times)

0 Members and 1 Guest are viewing this topic.

Bronski

  • Guest
Disabling Commands on Vehicles
« on: 25 Sep 2002, 00:25:03 »
This is a two part one.

First:  Is it possible to disable a command on a vehicle (without editing the addon itself)?  For example i would like to disable to eject on an aircraft.

Second:  I'd like to add back in a sort of pseudo eject command that triggers a radio message.  Example the message would say something like "Papa Bear, eject is not responding".

Along with a script i hope to get made i may use this to make a mission where you have to crash land your plane instead of ejecting.

seanver

  • Guest
Re:Disabling Commands on Vehicles
« Reply #1 on: 25 Sep 2002, 00:40:57 »
To lock the vehicle or helicopter:

name lock true

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Disabling Commands on Vehicles
« Reply #2 on: 25 Sep 2002, 17:29:31 »
Part2.     To add an action you can use the addaction command......If I may quote from the unofficial command ref

actionid=unit addaction["actiontext","actionscript"]
 
actionid is the name of your action, for use with the removeaction command
actiontext is the text which will appear on the units action menu.
actionscript is the scritp that will run when the user clicks on the action. It must be a file, not a command.


In your case the script will do little more that post the line of text "Eject not working".    Look up the official command ref for another view on the same thing.

Hope that helps.

Plenty of reviewed ArmA missions for you to play