Hello, everyone!
I'm new to this community and would like to understand how to check if a pushable object has been moved to a specific coordinate.
I tried attaching a script to the object and triggering it via interaction, which I know isn't the correct approach, but I used it for testing. My code looks like this:
display_message("box_1");
if entity["box_1"].coord == coord[-4, 0, 0] then
display_message("Great\n");
end;
However, it doesn’t work as expected. The message does not appear, which means the condition is not being checked correctly.
:
I assume I am not using the correct template for this. Any help would be greatly appreciated!
Thanks for your time! 🙂