This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| prpl:initmissile [2017/07/22 00:46] – content, needs a better example. GoodMorning | prpl:initmissile [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | Missile Target | + | | Missile Target |
| === Description === | === Description === | ||
| - | Sets the target of a missile. FIXME May or may not work on missiles generated by built-in units. | + | Sets the target of a missile. FIXME May or may not work on missiles generated by built-in units. Note that in order for a PRPL-generated missile to do damage, '' |
| - | Target is a PID, which can be virtual. Enemy seems to be whether the missile is enemy. | + | Target is a PID, which can be virtual. |
| === Examples === | === Examples === | ||
| < | < | ||
| - | " | + | # Fire a missile at the nearest enemy particle within 40 map tiles |
| + | GetNearestTarget(GetMouseCell 40 1 0 0 1 0) -> | ||
| + | " | ||
| + | <-UID 1.0 SetUnitHealth | ||
| + | <-UID <-Target 1 InitMissile | ||
| </ | </ | ||