HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Removing Patrol?

03-11-2004, 03:28 AM#1
Maegus
I know there's a JASS function to remove the standard buttons like Attack and Move and stuff, but apparently the tutorial section is down (dammit) so I couldn't get to the JASS tutorial...

So, can someone tell me what the function is for removing Patrol?
03-11-2004, 06:13 AM#2
Youma
This might be a good place to check..

http://kattana.users.whitehat.dk/browsefuncs.php
03-11-2004, 08:21 AM#3
Cubasis
Sadly, Patrol is not a good button to remove, in fact, none of the buttons are a good buttons to move. If you manage to remove Patrol, you can't follow a unit, as following a unit for some strange reason uses patrol. Other then the fact that i haven't seen someone manage to remove the patrol button, as i don't think there is a ID for it. However, if it does have a ID, this is the function to use.

call UnitRemoveAbility( unit, integer ) <-- is the one to bet on. I also remember seeing some function in tha jass vault (the link youma pasted)

Cubasis
03-11-2004, 04:07 PM#4
Peppar
Patrol is bound to Move, so in order to remove Patrol you need to remove Move, which I bet you don't want to do.

call UnitRemoveAbility(unit, 'Amov')