-
Notifications
You must be signed in to change notification settings - Fork 2
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);