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)
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#3
RE: Help ! Using variables

Well, the function doesn't repeat because it is only called once. You enter the level, 1 particle system is removed, and then the script is finished. You need something to recall this script.

I recommend using a for-loop instead. They're quite simple, really.

PHP Code: (Select All)
for(int i 0302; ++i) {
    
DestroyParticleSystem("ParticleSystem_" i);


This will probably have the effect you want. It repeats the destroy script 302 times, each time incrementing the number at the end of the particle name.

(This post was last modified: 05-21-2014, 08:44 PM by Mudbill.)
05-21-2014, 08:44 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)