Question Script for enable Clouds

Question Script for enable Clouds

Postby Oliver_Buo » 11 Jan 2019, 15:32

which script do I need to use to enable or disable clouds during the game?
-Thank you. :think:
User avatar
Oliver_Buo
 
Posts: 286
Joined: 27 Nov 2016, 17:51

Re: Question Script for enable Clouds

Postby Jonathan » 11 Jan 2019, 21:02

First, give the particle system a name (I'll use clouds for example). Then use
{l Code}: {l Select All Code}
clouds.set_enabled(true);

to make them appear, and use
{l Code}: {l Select All Code}
clouds.set_enabled(false);

to make them disappear again.
This also works with other particles like snow, ghosts, and rain. Hope this helps.
Jonathan
 
Posts: 59
Joined: 02 Nov 2015, 22:22

Who is online

Users browsing this forum: No registered users and 1 guest