1
Technical forum / "ActorEntry" equivalent for entities/secondary actors
« on: December 31, 2017, 03:05:02 PM »
Good last afternoon of 2017
In my 2D scene, I have different ladders regions, on which I have atteched the following script :
It works perfectly for my main actor.
Nevertheless, I also load another actor in my Scene :
It seems that the ActorEnter/ActorLeave low level events only work for the main actor (the interactive one): nothing is triggered when the loaded actor walk through the ladders.
Is there a way to make him also able to interract with the region's script ?
I wish an happy new year to the whole community
In my 2D scene, I have different ladders regions, on which I have atteched the following script :
Code: [Select]
on "ActorEntry"{
actor.WalkAnimName ="ladder";
}
on "ActorLeave"{
actor.WalkAnimName ="walk";
}
It works perfectly for my main actor.
Nevertheless, I also load another actor in my Scene :
Code: [Select]
var guy = Scene.LoadActor("actors\Guy\Guy.actor");
It seems that the ActorEnter/ActorLeave low level events only work for the main actor (the interactive one): nothing is triggered when the loaded actor walk through the ladders.
Is there a way to make him also able to interract with the region's script ?
I wish an happy new year to the whole community