GetLocalPlayerProxy

From The KillerJim Mod Wiki

PlayerProxy::GetLocalPlayerProxy

GetLocalPlayerProxy.png

Client Only Function - This API call can only be called on clients.

Description

In normal operations, the server will spawn a replicated proxy for every user. This means on every client you will have the replicated proxy for other clients.

This function allows you to quickly return the local player proxy from code that may be running for other player proxies (on the same client).

Arguments

None

Return Value
1 KJModPlayerProxy The player proxy of the local player
Normally you would cast this to your own player proxy type

Playing

Developers

Developer Reference