Because I am interested : Lua,param and floating Numbers.

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Eagle_Four
Posts: 231
Joined: Wed, 6. Nov 02, 20:31
x3

Because I am interested : Lua,param and floating Numbers.

Post by Eagle_Four » Tue, 1. Aug 23, 18:08

Hello,

I noticed a strange thing when passing values into the Lua script via raise_lua_event.
As soon as it is a floating point value, nothing arrives in the Lua function.

String and Integer on the other hand work. It's not a problem, I can convert the value to integer before and divide it afterwards in the Lua function. But is it basically that you can't pass floating point numbers? Or do I have to convert them before into a certain datatype that Lua understands?

Return to “X4: Foundations - Scripts and Modding”