UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Modulus not working?

broken avatar :(
Created 7 years ago
by Chilltacular
0 Members and 1 Guest are viewing this topic.
994 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 21 December 2013
Last active: 7 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Signature
Jack of All Trades: Master of None
×
Chilltacular's Groups
Chilltacular's Contact & Social Links
I'm trying to check whether a variable is a multiple of 360.  I'm just printing to screen the following

level.mHand % 360

but I don't get anything showing up. If I change the operator to a multiplication sign and multiply by 2 for example, it works. If I change the variable to any other number instead of a variable, it works, but it seems that using modulus with a variable doesn't work for some reason and I was wondering if anyone had a solution. Any help is appreciated.

 
Loading ...