Closed unknao closed 4 weeks ago
It seems like propCanCreate() doesn't update if you call it a bunch of times when creating props on the same tick.
Example code:
for(I = 1, 100){ if(!propCanCreate()){ break } propSpawn("models/props_junk/CinderBlock01a.mdl", entity():pos(), ang(), 1) print(I) }
this should stop printing at the burst limit, but it prints numbers well above that.
On further inspection it seems like propCanCreate() doesn't account for anything else wanting to block prop spawns.
Nevermind, it seems like it was a problem on my end
It seems like propCanCreate() doesn't update if you call it a bunch of times when creating props on the same tick.
Example code:
this should stop printing at the burst limit, but it prints numbers well above that.