Originally Posted by Koun
Unfortunately it seems like this fails silently as well for some unknown reason.
Neither DisplayText nor StatusText will produce any output with this, for me frown

I must be missing something here but i literally tried the example provided with the variable names changed to mine.


Have you tried if you have the same problems with .itemScripts?

For example:

Code
EVENTS

EVENT Float_Test
VARS
	ITEM: _item
	CHARACTER: _char
	FLOAT: _myFloat
	STRING: _output
	FIXEDSTRING: _fixedStringOutput
ON
	OnTriggerEnter(_, _item, "FloatTest")
ACTIONS
	Set(_myFloat, 3.1415)
	Print(_output, "My float has value [1]", _myFloat)
	Cast(_fixedStringOutput, _output)
	DisplayText(_item, _fixedStringOutput, 3)


Works with Floats as well as Float3 etc
- https://i.imgur.com/zgdBJMB.png
- https://i.imgur.com/6ja8crG.png

What doesn't seem to work for me though is the function DebugText, which would save one from the need to cast stuff:

Code
EVENTS

EVENT Float_Test
VARS
	ITEM: _item
	CHARACTER: _char
	FLOAT: _myFloat
	STRING: _output
	FIXEDSTRING: _fixedStringOutput
ON
	OnTriggerEnter(_, _item, "FloatTest")
ACTIONS
	Set(_myFloat, 3.1415)
	DebugText(_item, "My float has value [1]", _myFloat)


frown