CreateUnit Issues

Started by Sorrontis, January 05, 2017, 08:07:03 PM

Previous topic - Next topic

Sorrontis

Hello all,

So, I'm playing with the createUnit command in PRPL, and using the following code:


20 379 "Emitter" CreateUnit ->UnitID
<-UnitID 2 SETEMITTERPARTICLETYPE
<-UnitID 1 SETEMITTERPRODUCTIONINTERVAL
<-UnitID 150 SETEMITTERMAXPARTICLES
<-UnitID 300 SETEMITTERMAXTIME
<-UnitID 1.0 SETEMITTERMAXPARTICLESPEED


Something should pop up, but I've looked at the UnitId Trace, and it gives me -1.  The isn't using dot notation, I'll fix that later.


Nevermind... it's supposed  to be "Emitter" Coordinates CreateUnit ->UnitID ... I had it reversed
"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."

Nicant

Yeah that messed me up too!
CW4 hype!!