The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help ! Using variables (SOLVED)
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#1
Help ! Using variables (SOLVED)

Hey ! I'm making a level in which I want at first to have lots (302!) of fog particles, and later rain particles. The second part works fine, but for some reason I can't delete these fog particles. Also, running the map doesn't end with a crash. Here's what I came up with:

void OnEnter()
{

SetLocalVarInt("FogVar", 0);


if(GetGlobalVarInt("RainVariable") > 0) ///this is a trigger, the variable is added in a different level///
{

if(GetLocalVarInt("FogVar") < 302)
{
AddLocalVarInt("FogVar", 1);
DestroyParticleSystem("ParticleSystem_" + GetLocalVarInt("FogVar"));
}
///here's stuff that makes the rain happen//
}
}
(This post was last modified: 09-17-2014, 09:08 PM by Darkfire.)
05-21-2014, 08:13 PM
Find


Messages In This Thread
Help ! Using variables (SOLVED) - by Darkfire - 05-21-2014, 08:13 PM
RE: Help ! Using variables - by Traggey - 05-21-2014, 08:36 PM
RE: Help ! Using variables - by DnALANGE - 05-22-2014, 11:08 AM
RE: Help ! Using variables - by Mudbill - 05-21-2014, 08:44 PM
RE: Help ! Using variables - by Darkfire - 05-22-2014, 02:22 PM
RE: Help ! Using variables - by PutraenusAlivius - 05-22-2014, 03:56 PM
RE: Help ! Using variables - by Mudbill - 05-22-2014, 03:20 PM
RE: Help ! Using variables - by Darkfire - 05-22-2014, 03:44 PM



Users browsing this thread: 1 Guest(s)