NBS+ MathPlus Library V2 (its now a static class!)
<kuid2:388413:439002:1>
| Author: | Laurinlaki |
| Kind: | library |
| Build: | 4.3 |
| Size: | 7.28KB |
| Uploaded: | 2025-07-22 |
| Website: | trainz.de |
| Downloads: |
6
-
+
|
NBS+ MathPlus Library V2 (its now a static class!)
Tired of writing down basic math functions in your script over and over? Just add this to your script-include-table and load it by including mathplus.gs and you have easy access to rounding, advanced power function, approximations of sin/cos/tan and more!
Installation: !!NOTE!! BECAUSE THE QUOTE CHARACTER IS NOT USABLE IN ASSET DESCRIPTIONS, ALL QUOTES HAVE BEEN REPLACED BY TWO PERCENT SIGNS (%%)!
1. Add <kuid:388413:439002> to your script-include-table. Create a new script-include-table if you don't yet have one like:
script-include-table
{
0 <kuid:388413:439002>
}
2. add [include %%mathplus.gs%%] to the top of your script file where the other includes are located
3. Congratulations, you can now access functions like [MathPlus.Round(5.62)]!
IMPORTANT!: If you have used an older version of the script that required you to load MathPlus through [World.GetLibrary] and have [MathPlus MathPlus;] as a definition at the top, that is no more! Please remove those two lines. MathPlus is now a static class and all functions can now easily be accessed by including the gs file and using MathPlus.Function(...) :)
Author: Mika K. 'laurinlaki'
- NBS+ MathPlus Library V2 (its now a static class!)
- config.txt 1.90KB
- mathplus.gs 3.68KB
- thumbnail.jpg 5.25KB
User photos
No one has uploaded a photo of this object yet.

Comments:
Sign in to post a comment