May 13, 2024, 09:09:36

Author Topic: Constant with the parent machine of a rule  (Read 3951 times)

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Constant with the parent machine of a rule
« on: March 13, 2011, 05:08:20 »
Does someone know if it's there a way to know the identifier of the machine a certain rule is being executed on?

For example, having this machine:

Code: [Select]
MACHINE "Test"
STATE test
RULE event in
:action
e.var := M:GetMachine("Test");
:end
END
END
END

I'd want to know if it's there a way to adquire the same value that's stored on the "e.var" variable but generic.