playMaker

Author Topic: Playmaker trigger scripts  (Read 971 times)

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Playmaker trigger scripts
« on: April 20, 2020, 07:38:37 AM »
I noticed that when I use a trigger action, Playmaker adds the needed scripts to the objects.
In this case I added a trigger enter and a trigger exit to a cube, and I have 2 these scripts.

Later on, I decided to replace the box trigger with a sphere.
To do it, I preferred to create a brand new sphere and paste the FSM component on it.
I copied the FSM from the Playmaker window, selected the sphere, and pasted it in the Playmaker window back again.

I tested the scene: all worked correctly.
But I noticed that the scripts that were in the original object were NOT added to the new trigger.

So I wondered if Playmaker was reusing those scripts in the cube.
I deleted the cube.
Tested the scene, all works fine again.

How is this possible? Or how does this work exactly?