I have a macro to control a pressure plate in my game. I maintain a List with all current colliders so I can trigger custom events when the collider count is decrased to 0 (deactivate event) or when the collider count is increased to >= 1 (activate event).
I capsuled the logic for all the collider checks to a dedicated super unit:
Inside this super unit I call some List functions to perform all the collider validations. I get the following error when calling Contains():
NullReferenceException: Object reference not set to an instance of an object
And I get the following error when calling Remove():
InvalidOperationException: The value of 'listOutput' on 'RemoveListItem#a2da3...' cannot be fetched dynamically, it must be assigned.
The List is an object variable. I access the variable on my main macro via the "Get Variable" node and pass it to the entry point of my super unit. Can you tell me what my problem is?
Thanks in advance!
Customer support service by UserEcho