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
Script Help Small question
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#1
Small question

SetLocalVarFloat(sName+"Speed", gvMonolithSpeeds[lCount%5]*RandFloat(0.04f,0.06f));

gvMonolithSpeeds[lCount%5]


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.

Derp.
(This post was last modified: 07-25-2015, 02:00 AM by Neelke.)
07-25-2015, 01:59 AM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#2
RE: Small question

It is the Modulo operator. Something to with dividing a number by another, then returning the remainder.

https://en.wikipedia.org/wiki/Modulo_operation

07-25-2015, 03:29 AM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#3
RE: Small question

Alright, thanks.

Derp.
07-25-2015, 01:57 PM
Find




Users browsing this thread: 1 Guest(s)