Team Check

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Donator

New Member
Jun 26, 2003
146
0
0
Vienna
Visit site
Please help. Need to perform a team check, so that people on team red have red shields, and people on team blue have blue shields. Something along the line of

if (injured.PlayerReplicationInfo.GetHumanReadableName()=="Red")

or

if (injured.PlayerReplicationInfo.TeamID==1)

which I just can't seem to get to work or find done somewhere else to rip from...
 

Smoke39

whatever
Jun 2, 2001
1,793
0
0
Interesting. I'll try to keep that in mind the next time I feel like checking someon's team, as opposed to seeing if it's the same as someone else's.
 

Donator

New Member
Jun 26, 2003
146
0
0
Vienna
Visit site
Incidently, it STILL does produce a similar error (" type mismatch in = "), even I don't understand WHY this time, as TeamIndex actually IS defined "int". So what the f... is wrong with that?!
 

Smoke39

whatever
Jun 2, 2001
1,793
0
0
:con: This is from part of the link gun code:
Code:
if (Instigator.PlayerReplicationInfo.Team == None || Instigator.PlayerReplicationInfo.Team.TeamIndex == 0)
WTF indeed.