Hi guys! So i changed a piece of code in DoorOpen.cpp from >=, to == so that I could get the doors to only open when specific objects are placed on them:
code:
if (GetTotalMassOfActorsOnPlate() == TriggerMass)
{
OnOpenEvent.Broadcast();
}
else
{
OnCloseEvent.Broadcast();
}
However… the doors are not opening at all, despite objects I place on the pressure plates being exactly equal to the triggermass set on any one particular door. i.e. on door one, triggermass is 50. I set my defaultpawn to 50kg in the blueprint window… door doesn’t open. Likewise with two chairs (each set to 25 mass each).
Does anyone know why this is happening? Any help would be greatly appreciated! Thanks