Issues importing OpenDoor in a new level

Hi,

So I have created a new level that is totally independent of the previous one. It does have an object with the OpenDoor component added to it. My intention is to detect the pressure plate and print “1” in the log file.

When I compile and run the level, it does print “Actor etc detected on pressure plate” as we learnt and implemented. However I am unable to create a flag or a PresurePlate Trigger that can set a flag of 1 to let my code in new level know that the Pressure plate has been triggered.

I have tried including the “OpenDoor.h” file in the header files of my new level, first its not able to locate it. Upong including its path, it says unable to find “Opendoor.generated.h”. Despite specifying its path or or trying various methods, its not being able to incorporate?

Is there a better way to do this? All I want to do is set a flag of 1 (in the cpp code of my new level) if the triggervolume(pressure plate ) detects an actor on it (any) .

I think It’s unclear where you want that.

Privacy & Terms