Create a free account to remove all ad content.

Author Topic:  [prel:x|y|z] & [pos:x|y|z] + [Single:x] for variables?  (Read 185 times)

0 Members and 1 Guest are viewing this topic.

Dryym

  • Supreme Member
  • *
  • Posts: 4336
  • What's yours is mine. ~TM's Resident Master Thief~
    • View Profile
  • Xbox: dryym
[prel:x|y|z] & [pos:x|y|z] + [Single:x] for variables?
« on: July 29, 2016, 01:01:49 PM »
What is the difference between prel and pos for variables?


EDIT: Also, What does [single:x] do, And what are some practical uses for it?
« Last Edit: July 29, 2016, 01:05:37 PM by Dryym »

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: [prel:x|y|z] & [pos:x|y|z] + [Single:x] for variables?
« Reply #1 on: July 29, 2016, 11:07:01 PM »
prel: will give you exactly the same whole number value as the existing prel coords.
pos: gives you the actual position as a real number.

I primarily made the distinction to reduce comparison confusion. But I'm also sure each will prove useful in different scenarios.

single: mainly for comparing numbers of different precision. variables are stored as double precision real (floating point) numbers, and in some cases (i've forgotten what they are) equals [=] comparisons were failing because the source of one number was from a single precision number. so the comparison was fixed by converting the double precision number to single precision beforehand. hopefully it won't be needed often.