Greetings all, I wonder how to access Specific Zed's Health in HUD class (more specific Pat's) without using foreach DynamicActors (the slowest way...)?
local Controller C;
for ( C = Level.ControllerList; C != none; C = C.nextController ) {
...
}
Code:local Controller C; for ( C = Level.ControllerList; C != none; C = C.nextController ) { ... }
Code:local Controller C; for ( C = Level.ControllerList; C != none; C = C.nextController ) { ... }
Linked lists don't exist on the client when on a dedicated server.Didn't tought about that method. Thanks I will try it out!
the radar by WPC probably uses that. It's not the best, but it works.Yeah i noticed that in Hud class doesn't seem to work, so i have addded Health tracking into custom GameReplication class.
Health checks in Tick (using custom GameType) and Initiallazing in custom GameType (under Boss preparation in trader time) since i have already altered State MatchInProgress. So i just access to my custom GameRepliaction in HUD.
P.S. I guess it's better than using foreach DynamicActors?