User Tools

Site Tools


prpl:docs:getownedparticlecount

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
prpl:docs:getownedparticlecount [2015/05/23 15:51] jmapsprpl:docs:getownedparticlecount [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-~~DISCUSSION~~ 
-<- [[prpl:alphabetic_list_of_commands| Alpha List of Commands]] <-[[class link]] <-[[pf:prpl_information|PRPL home]] <-[[pf:start| Game 4 home]]   
-=====  command   ===== 
  
-=== Raw Code === 
-<code> 
-case STATEMENT.GETOWNEDPARTICLECOUNT: 
-                    i1 = GetIntFromStack(); //uid 
-                    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)); 
-                    } 
- 
-</code> 
- 
- 
-^Arguments^Result^Notation^ 
-| |  |''i1 i2 f4 f3 f2 f1 --  ''| 
- 
-=== How to use === 
- 
-| Standard CRPL | //arguments // **command **   | 
-| Warp notation | **command** (//arguments//) | 
- 
-=== Description === 
- 
-=== programming notes === 
- 
-=== Examples === 
-<code> 
-ShowTraceLog 
-</code>  
- 
-Same example in Warp notation: 
- 
-<code> 
-showtracelog 
- 
-</code> 
prpl/docs/getownedparticlecount.1432396289.txt.gz · Last modified: 2025/02/14 14:56 (external edit)