MCPcopy Create free account
hub / github.com/arnaud-jamin/Cog / GetTeam

Method GetTeam

Source/CogSample/CogSampleFunctionLibrary_Team.cpp:7–22  ·  view source on GitHub ↗

--------------------------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

5
6//--------------------------------------------------------------------------------------------------------------------------
7int32 UCogSampleFunctionLibrary_Team::GetTeam(const AActor* Actor)
8{
9 if (Actor == nullptr)
10 {
11 return 0;
12 }
13
14 const ICogSampleTeamInterface* TeamActor = Cast<ICogSampleTeamInterface>(Actor);
15 if (TeamActor == nullptr)
16 {
17 return 0;
18 }
19
20 const int32 Team = TeamActor->GetTeam();
21 return Team;
22}
23
24//--------------------------------------------------------------------------------------------------------------------------
25void UCogSampleFunctionLibrary_Team::SetTeam(AActor* Actor, int32 Value)

Callers 1

RenderContentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected