natiny_script_make_number

C
NatinyScriptValue natiny_script_make_number(double value);

Wraps a number for use by a script.

Parameters

Name Type Description
value double Number to wrap

Returns

Type Description
NatinyScriptValue Value tagged NATINY_SCRIPT_NUMBER and containing value

Example

C
natiny_script_set(script, "game.version", natiny_script_make_number(3));