HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Computer AI interface

01-25-2010, 09:19 AM#1
leric
Anyone know what this 3 function does?

Collapse JASS:
native RemoveGuardPosition  takes unit hUnit                                returns nothing
native RecycleGuardPosition takes unit hUnit                                returns nothing
native RemoveAllGuardPositions takes player num                             returns nothing
01-26-2010, 03:15 AM#2
Archmage Owenalacaster
I may just guess here, but I think it removes guard positions that were previously set for a unit, usually only applicable in Campaign maps which actually use guard positions. However, I've not actually tried to remove guard positions before, so I can't say with certainty. I'd advise using an simple AI script to set a few guard positions and try them out.
01-26-2010, 04:07 AM#3
Ammorth
When ording computer units around, they will return to their place of creation (with no AI running). Most custom games that use computer character will call RemoveAllGuardPositions, so the units don't go back to where they started. For example, TDs do it.