odd_value_val

Syntax

odd_value_val(value)

Parameters

Name Description
value The Value to get the GameMaker value of.

Returns

any: The GameMaker value that the given Value holds.

Description

This function pulls the GameMaker value out of the Value. This should be used instead of directly accessing it.

Example

var value = odd_create_value(odd_type_int32, 21);

show_debug_message(string(odd_value_val(value)));

// ...

This would print “21” to the console. Take careful note that value is not used directly, but gets passed through this function first.