Use base player controller type for spawn streaming lease
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
// use. Releasing it before possession can stream out runtime inventory nodes.
|
||||
class ERR_SpawnSceneLease
|
||||
{
|
||||
protected SCR_PlayerController m_Controller;
|
||||
protected PlayerController m_Controller;
|
||||
protected IEntity m_Actor;
|
||||
protected vector m_Position;
|
||||
protected ref array<IEntity> m_Entities = {};
|
||||
|
||||
static void Stream(SCR_PlayerController controller, IEntity entity, bool normalStreaming)
|
||||
static void Stream(PlayerController controller, IEntity entity, bool normalStreaming)
|
||||
{
|
||||
if (!controller || !entity) return;
|
||||
RplIdentity identity = controller.GetRplIdentity();
|
||||
@@ -16,7 +16,7 @@ class ERR_SpawnSceneLease
|
||||
if (component) component.EnableStreamingConNode(identity, normalStreaming);
|
||||
}
|
||||
|
||||
void Start(SCR_PlayerController controller, IEntity actor, vector position, array<IEntity> entities)
|
||||
void Start(PlayerController controller, IEntity actor, vector position, array<IEntity> entities)
|
||||
{
|
||||
Stop();
|
||||
m_Controller = controller;
|
||||
|
||||
Reference in New Issue
Block a user