Book a Demo

Author Topic: Cross Class Behaviors  (Read 5681 times)

EAButNotForGames

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Cross Class Behaviors
« on: May 27, 2024, 05:46:36 pm »
I have a problem.
I have a block with an activity with a diagram and actions, which have effects. For example:
"sim.block.activity.action1.x = 5+1;"
Which works fine.
Now I want to call that activity in a state machine of another block.
I tried 2 options.
Using, for example, the exit and the Behavior tab;
  • I select element and that activity
  • I put in the path of the activity: sim.block.activity();

In both cases I get the error:
SIMULATION ERROR: sim.block is undefined expression

Below is an example.
The Activity executes, by it self, without problem.
But used as the exit of state1 it prints out SIMULATION ERRORs


EAButNotForGames

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Re: Cross Class Behaviors
« Reply #1 on: October 14, 2024, 04:50:29 pm »
Fixed in Version 17