Knuckle Cracker

Particle Fleet => Map Makers, Ship Builders, and Coders => Topic started by: Oblivion on October 08, 2016, 08:47:34 AM

Title: Params
Post by: Oblivion on October 08, 2016, 08:47:34 AM
What are the params for:
DestroyParticle ?
GetParticlesInRange ?
(thought GetParticlesInRange would be similar if not equal to IsCreeperInRange)
Title: Re: Params
Post by: GoodMorning on October 08, 2016, 09:22:48 AM
At a guess, DestroyParticle will be a particle UID.

GetParticlesInRange [X Y Range ? ? - ]

I suspect that the ?s are true/false specifying whether to return friendly particles and look in a square range (box), but am not sure.
Title: Re: Params
Post by: Oblivion on October 08, 2016, 03:42:21 PM
Im throwing onto the stack the particle UID for destroy particle but it says its taking an item from an empty stack. What other params do you think it would be asking for?
Title: Re: Params
Post by: planetfall on October 08, 2016, 03:55:46 PM
I don't know what the other argument does, but the UID has to go first. At a guess, the other argument is similar to CW3's DestroyMode?

For GetParticlesInRange:

X Y range square type

For type, 0=blue, 1=red, 2=both

For some reason GetParticlesInRange interprets the range as a diameter. There is a second command, GetParticlesInRadius, which handles this a bit more sensibly.
Title: Re: Params
Post by: Oblivion on October 08, 2016, 04:09:44 PM
Yes, thank you! the other param was for a death animation. Can't believe I didn't think of that as it was there in Destroy in CRPL. Thanks!