Hello,
First of all, thank you very much for this awsome course !
I was wondering in this lecture if somehow we could add the pressure plate actor reference to the trigger component TriggerActors array directly from the pressure plate cpp file/class ?
Since the logic to move down the plate is (at this stage of the course) specific to the plate itself.
I tried to add the ref in the PressurePlate constructor with Transporter->TriggerActors.Add(this) but when I launch the game, the list stays empty, I suppose this is because “this” ref is nullptr until the end of the PressurePlate constructor call itself ?
I then tried to call the same line in the BeginPlay() method of the PressurePlate, then a Ref is added to the list at runtime but the logic still doesn’t work. I suppose this is because the “BeginPlay” method from the Transporter is called before the one from the Pressure Plate ?
Is there any way to achieve this properly ?
Thanks !