Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Remove particles through script

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
PVince81
Member
Member
Posts: 15
Joined: December 15th, 2010, 1:42 pm
Name: Vincent
Location: Stuttgart, Germany

Remove particles through script

Post by PVince81 »

I am trying to do the following:
There is a key surrounded by a particle beam (cylinder). When the player picks up the key, the particle beam disappears.

I managed to create the key using a spawn point and it is possible to pick it up.
How can I destroy the beam after the key has been picked up?

From what I understand I should use the "destroy" command on the particle beam. But to be able to get a reference to the particle beam object, I need to spawn it using a spawn point, just like for the key. The problem is that there seems to be no command to spawn particles/effects. I even checked the source code and it seems that it's only possible to spawn creatures, items and objects.

Any idea if there is another way to do it ?

Else this is a feature that should be added. I have some other ideas regarding the appearance or disappearance of permanent particle effects.

Thanks,

Vincent
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Remove particles through script

Post by chocolatepie33 »

Yeah, I don't think it's possible to use scripts on a particle (the exception being text, look @ the particle showcase map), I asked about this on the "future requests" page, though.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Locked