Search the Community
Showing results for tags 'local'.
-
... if Map:Load(mapfile)==false then return end zombiesleft= 0 zombieskilled = 0 roundssurvived = 0 zombiesextrahealth = 0 ... this is in the main.lua script function Script:NewRound() roundssurvived= roundssurvived +1 local a = (roundssurvived*.1) + roundssurvived self.maxEnemies= self.maxEnemies + Math:Round(a) end this is in an script attached to a pivot in the scene. The title is misleading in parts, i havent tried local variables yet but it would be nosense. "...: 41 : attempt to perform arithmetic on field 'currentround' (a nil value)" I get this error, am very confused since the calculation below this line that I implemented today worked.
-
Is therer a way to make particles move in emitter's local space? So when emitter moves, it's particles move with it, while still having their own speed?