Jump to content
Sign in to follow this  
philcommando

What is Removeaction?

Recommended Posts

What is and what does Removeaction do?

Answer:-

1. Ingame, on the righthand bottom corner, you would be able to see a list of actions ,called the action menu, u can click to enable your unit to perform

2. In addonmaking, sometimes u might wanna limit the default actions . For example in a custom tank addon u dont wanna have the turnout action, so u can have the removeaction command to remove it.

Here's how:-

1. Add a class eventhandler in your config

2. in the init, put in this line

init=" [this] exec {\MyFile\scripts\remove.sqs}";

3. write a script call the remove sqs:-

---------------------------------

_vehicle= this select 0

(_this select 0) removeaction 1

exit

-----------------------------------------

Ingame u will see the turnout enabling action gone.

========================================

-Why remove action 1? not 2 or 3 or 20?

ans:-

the numerals are the identification of the order of actions on the action menu of whichever vechicle, the layout depending on whichever vechicle too, eg:-

start engine --------is actually the assigned action 0

hover ---------is actually the assigned action 1

Get out ------------is actually the assigned action 2

Therefore to remove start engine in the above example, the code to use would be:-

(_this select 0) removeaction 0

In this manner, whoever uses the vehicle will not be able to start the engine. Of course, this is only an example, there are many uses to customize which would be up to one's imagination.;-)

Share this post


Link to post
Share on other sites

hey cool stuf phill

will come in pretty hand

hope u can make a complete list

Share this post


Link to post
Share on other sites

The lists are right before your eyes wink_o.gif

Just go ingame and watch the action menu of the default vehicle u wanna customize from. Each and every different vehicle has a different menu, but the numerical order of action will always be the same:-

first action -------------0

second action ----------1

third action -------------3

fourth action -------------4

When u wanna customize, just use the order the default vehicle has ingame and remove accordingly.

Share this post


Link to post
Share on other sites

THANK YOU !!

At least i understand now how it is working, and using this tutorial i solved my problem entirely.

It has been a complete week i suspected the removeaction to be a possible solution but with all the script errors that appeared due to an error in the string used i was near to throw my computer out of the window trying so much hopeless other solutions.

thank you again philcommando !

EDIT : i was wrong, the problem is not solved , the "put out fire" action always occur when i approach the fire, it seems i was just not in the good position when it seemed solved.

Argh..... i am back to my hopeless attempts to fix that problem .

Share this post


Link to post
Share on other sites

Strange though...for my horse, i used exactly the same concept to remove the turnout and it works. Perhaps the initiation to the fire is thru a memory vetex, then u will need a workaround...I havent a clue to disable the memory vertex ..yet.

Share this post


Link to post
Share on other sites

maybe u should try animating it and checking its animationphase as a switch ?

i use that on my ds

like animationpahe "sth" == 1: exec "blbl.sqs"

or similar

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×