MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SwitchPlayerTo

Method SwitchPlayerTo

engine/Poseidon/World/WorldSetup.cpp:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 return _playerOn;
100}
101void World::SwitchPlayerTo(Person* veh)
102{
103 _playerOn = veh;
104 Log("SwitchPlayerTo %s", (const char*)veh->GetDebugName());
105 SetActiveChannels();
106}
107Person* World::GetRealPlayer() const
108{
109 return _realPlayer;

Callers 4

BeginArcadeMethod · 0.80
BeginPreviewUnitMethod · 0.80
SelectPlayerMethod · 0.80
OnMessageMethod · 0.80

Calls 1

GetDebugNameMethod · 0.45

Tested by

no test coverage detected