I have written a script to control the doors on a goods shed. It is based on the tutorial “Setting Up the Asset”.
It works ok, but I want to modify it a bit. It uses the code “AddHandler(me,"Object","","ObjectHandler"); ” and “void ObjectHandler(Message msg)” with “if (msg.minor == "InnerEnter")” to pick up the trigger.
However I want to use two triggers to do things, but I can’t find a way to determine whicch trigger has sent the message.
Can anybody suggest what I should try to achieve this please?
It works ok, but I want to modify it a bit. It uses the code “AddHandler(me,"Object","","ObjectHandler"); ” and “void ObjectHandler(Message msg)” with “if (msg.minor == "InnerEnter")” to pick up the trigger.
However I want to use two triggers to do things, but I can’t find a way to determine whicch trigger has sent the message.
Can anybody suggest what I should try to achieve this please?