onoverlapbegin April 12, 2023 by wordlinkanswers onoverlapbegin Comment 0 void ALightSwitchCodeOnly::OnOverlapBegin(UPrimitiveComponent* OverlappedComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult)<br /> {<br /> // Other Actor is the actor that triggered the event. Check that is not ourself.<br /> if ( (OtherActor != nullptr ) && (OtherActor != this) && ( OtherComp != nullptr ) )<br /> {<br /> // Turn off the light<br /> PointLight->SetVisibility(false);<br /> }<br /> } Popularity 4/10 Helpfulness 2/10 Language whatever Source: docs.unrealengine.com Tags: whatever Share Link to this answer Share Contributed on Feb 20 2020 Strange Snake 0 Answers Avg Quality 2/10