[SCRIPT] Small question - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Small question (/thread-30312.html) |
Small question - Neelke - 07-25-2015 Code: SetLocalVarFloat(sName+"Speed", gvMonolithSpeeds[lCount%5]*RandFloat(0.04f,0.06f)); Code: gvMonolithSpeeds[lCount%5] Code: % Can someone tell me what this is called and what it does (%)? I've seen it alot recently but I haven't really quite understood it yet. RE: Small question - 7heDubz - 07-25-2015 It is the Modulo operator. Something to with dividing a number by another, then returning the remainder. https://en.wikipedia.org/wiki/Modulo_operation RE: Small question - Neelke - 07-25-2015 Alright, thanks. |