gooser Posted March 3, 2014 Posted March 3, 2014 Assuming you have a reference to an Actor, either from the HookActors() method or some event callback, and you want to compare that Actor to PlayerRef? What is the best way to test if that reference is the same Actor as the Player? == ? .GetName() == .GetName(), etc? Thanks
Ashal Posted March 3, 2014 Posted March 3, 2014 Simpliest: if ActorRef == Game.GetPlayer() ;// Player stuff endIf Best Practice: Actor property PlayerRef auto if ActorRef == PlayerRef ;// Player stuff endIf
Recommended Posts
Archived
This topic is now archived and is closed to further replies.