Hi!
I’m trying to combine the prop_manipulator with custom-spawned creative_prop objects to use the prop_manipulator DamagedEvent and DestroyedEvent for my creative_prop objects.
I have set up the prop_manipulator with an @Editable field in my device that spawns the creative_prop objects so I can Subscribe to the DestroyedEvent. The event sadly doesn’t fire when I destroy one of the objects in-game.
When I add a regular prop in the scene before starting the game and I destroy that one, it does fire the DestroyedEvent so I know the setup works just not with spawned props.
Anyone something to help?
Thanks!
@editable
Detector : prop_manipulator_device = prop_manipulator_device{}
OnBegin<override>()<suspends>:void=
Detector.DestroyedEvent.Subscribe(OnTargetDestroy)
OnTargetDestroy(Agent: agent):void=
Print("Target destroyed!")