Due to increasing spam attacks, forum registrations are currently paused to keep our community safe and spam-free. Come hang out and stay connected with us on the SimHub Discord: https://discord.com/invite/nBBMuX7!

Catch you on Discord — and thanks for understanding!
NCalc Functions in ...
 
Notifications
Clear all

NCalc Functions in JS

1 Posts
1 Users
0 Reactions
386 Views
 awbl
(@awbl)
Active Member
Joined: 3 years ago
Posts: 7
Topic starter  

Is there any way to use the NCalc functions if writing JavaScript? I want to use the position based and relative index based functions to iterate through the cars ahead/behind me and get info about them. I tried adding them just to see, but SimHub locks up. The only other approach I can think of is to reference a property that has dedicated properties for each car ahead and behind with string concatenation to dynamically create the property name assuming that'd even work.


   
Quote
Share: