User Tools

Site Tools


pf:prpl:docs:getownedparticlecount

This is an old revision of the document!


~~DISCUSSION~~ <- Alpha List of Commands <-class link <-PRPL home <- Game 4 home

command

Raw 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));
                    }
ArgumentsResultNotation
i1 i2 f4 f3 f2 f1 –

How to use

Standard CRPL arguments command
Warp notation command (arguments)

Description

programming notes

Examples

ShowTraceLog

Same example in Warp notation:

showtracelog
pf/prpl/docs/getownedparticlecount.1425484533.txt.gz · Last modified: 2025/02/14 14:56 (external edit)