Home   Help Search Login Register  

Author Topic: Ejecting Troops via Action menu  (Read 726 times)

0 Members and 1 Guest are viewing this topic.

CarlHill

  • Guest
Ejecting Troops via Action menu
« on: 12 Dec 2002, 20:34:54 »
I've looked and found how to do it with triggers, but how could I do it using the action menu?

CH

Azraell

  • Guest
Re:Ejecting Troops via Action menu
« Reply #1 on: 12 Dec 2002, 22:06:54 »
AddAction
 
Description :
Adds an action to a units action menu.
 
Syntax :
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 script that will run when the user clicks on the action. It must be a file, not a command.
The action menu is called up using the middle mouse button or enter key in game.
 
Returns :
-
 
Example :
attack=player addaction["Attack the base!","attack.sqs"]
 

Azraell

  • Guest
Re:Ejecting Troops via Action menu
« Reply #2 on: 12 Dec 2002, 22:20:48 »
btw, i posted that flare script for you. its in that other post of urs in  script ideas forum :)

CarlHill

  • Guest
Re:Ejecting Troops via Action menu
« Reply #3 on: 12 Dec 2002, 22:54:16 »
I don't know what I'd do without your help, thanks a bunch!!!

CH