User Tools

Site Tools


prpl:getnearesttarget

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
prpl:getnearesttarget [2017/07/21 20:41] – content, incomplete GoodMorningprpl:getnearesttarget [2018/07/06 16:06] (current) – Changed OnlyShip argument kajacx
Line 4: Line 4:
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| X Y Range Enemy Untargeted NotNormal NotVirtual OnlyEnemyShip | Target | [ int int float bool bool bool bool bool - PID ] |+| X Y Range Enemy Untargeted NotNormal NotVirtual OnlyShip | Target | [ int int float bool bool bool bool bool - PID ] |
  
  
 === Description === === Description ===
-Finds the nearest target to the specified cell. If no target is found within Range cells, returns -1. If Enemy is true, returns something red, else something blue. If Untargeted is true, does not target something that a built-in unit is shooting at. If NotNormal is true, does not return ordinary particles. If NotVirtual is true, doesn't return virtual particles (Emergent, Omnis, ship hull...). OnlyEnemyShip is self-explanatory, but FIXME it may not change depending on Enemy.+Finds the nearest target to the specified cell. If no target is found within Range cells, returns -1. If Enemy is true, returns something red, else something blue. If Untargeted is true, does not target something that a built-in unit is shooting at. If NotNormal is true, does not return ordinary particles. If NotVirtual is true, doesn't return virtual particles (Emergent, Omnis, ship hull...). OnlyShip is self-explanatory, only virtual hull particles will be found, works on both player controlled ships and allied blue ships if Enemy is FALSE.
  
 Returned target will be a PID. Returned target will be a PID.
prpl/getnearesttarget.txt · Last modified: 2018/07/06 16:06 by kajacx