I have a related question Kyatric
if you use a Wait in a function and call the function with a param, does it asses the param source after the wait?
i.e.
Player OnCollision with Item
Call Function ShowItemAchievement(Item.text)
delete Item
Function ShowItemAchievement
Wait 1
Set DisplayText to Function.Param(0)
My code always shows the item text as 0 even though I am passing it string. My guess is the Param reference doesn't happen until after the Wait and since it has been destroyed it takes empty memory which is zeroed out. Can you confirm this?
Maybe I need it to hold the param in memory.. I could probably use a local variable in the Function, but not sure how that would respond if I had 2 Item Collisions in a row (would it stack up? or overwrite the local variable?)