This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
prpl:docs:getownedparticlecount [2015/05/23 15:51] – jmaps | prpl:docs:getownedparticlecount [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | ||
- | <- [[prpl: | ||
- | ===== command | ||
- | === Raw Code === | ||
- | < | ||
- | case STATEMENT.GETOWNEDPARTICLECOUNT: | ||
- | i1 = GetIntFromStack(); | ||
- | UnitManager um = UnitManager.GetUnitByUID(i1); | ||
- | if (um != null) { | ||
- | stack.Push(new Data(um.particleCreationCount)); | ||
- | } else { | ||
- | //TODO: Lookup ship or other type that can own particles | ||
- | stack.Push(new Data(0)); | ||
- | } | ||
- | |||
- | </ | ||
- | |||
- | |||
- | ^Arguments^Result^Notation^ | ||
- | | | |'' | ||
- | |||
- | === How to use === | ||
- | |||
- | | Standard CRPL | //arguments // **command ** | | ||
- | | Warp notation | **command** (// | ||
- | |||
- | === Description === | ||
- | |||
- | === programming notes === | ||
- | |||
- | === Examples === | ||
- | < | ||
- | ShowTraceLog | ||
- | </ | ||
- | |||
- | Same example in Warp notation: | ||
- | |||
- | < | ||
- | showtracelog | ||
- | |||
- | </ |