Skip to content

Change Model Of Player

Pavle edited this page Oct 9, 2022 · 1 revision
static ZLevelManager* levelManager = Singletons::GetLevelManager();
ZResourceManager* resourceManager = Singletons::GetResourceManager();

ZHitman5* player = levelManager->GetHitman().GetRawPointer();
ZResourcePtr primResourcePtr = resourceManager->LoadResource(runtimeResourceID);

player->GetGeomEntityPtr()->ChangePrimitiveResourcePtr(resourcePtr);
Clone this wiki locally