Post: Setting FX limit
03-25-2016, 10:11 AM #1
DF_AUS
NextGenUpdate Elite
(adsbygoogle = window.adsbygoogle || []).push({}); Ive done this with dogs and others ( setting limits ),however,the same method must not work with fx ( i could be wrong )

I been messing with a function similar to the 3d drawing in the inspire menu,i want to set a limit so only a certain amount of fx can be spawned,can someone point me in the correct direction,thanks Smile
(adsbygoogle = window.adsbygoogle || []).push({});
03-25-2016, 02:03 PM #2
Originally posted by AUS View Post
Ive done this with dogs and others ( setting limits ),however,the same method must not work with fx ( i could be wrong )

I been messing with a function similar to the 3d drawing in the inspire menu,i want to set a limit so only a certain amount of fx can be spawned,can someone point me in the correct direction,thanks Smile


    
makesomefx() {
if(level.spawned_effects++ > 100) return;
//put code to spawn effects here
}


Is this what you're asking for?
This will only let you do whatever 100 times
03-25-2016, 02:29 PM #3
DF_AUS
NextGenUpdate Elite
Originally posted by John View Post
    
makesomefx() {
if(level.spawned_effects++ > 100) return;
//put code to spawn effects here
}


Is this what you're asking for?
This will only let you do whatever 100 times


Thanks John,was similar to what i was first using,all is fine now,thread can be close Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo