Page MenuHomeFeedback Tracker

OverrideRaise and OverrideAimChange does not work on custom entites
New, UrgentPublic

Description

OverrideRaise, OverrideAimChangeX and OverrideAimChangeY does not work on custom entities but it does work if you execute it for the player you are playing

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Spawn entity and execute the following functions i described

DOES NOT WORK:

PlayerBase ply = PlayerBase.Cast(GetGame().CreateObject("SurvivorM_Mirek", GetGame().GetPlayer().GetPosition(), false, false, true));

EntityAI mitem = NULL;

mitem = ply.GetInventory().CreateInInventory( "BalaclavaMask_Beige" );
mitem = ply.GetInventory().CreateInInventory( "HuntingJacket_Winter" );
mitem = ply.GetInventory().CreateInInventory( "HunterPants_Winter" );
mitem = ply.GetInventory().CreateInInventory( "AthleticShoes_Brown" );

mitem = ply.GetInventory().CreateInInventory( "PlateCarrierVest" );
mitem.GetInventory().CreateAttachment("PlateCarrierPouches");

Weapon_Base moWpn = CreateWeapon( ply, "UMP45" );

ply.LocalTakeEntityToHands( moWpn );

ply.GetInputController().OverrideRaise(true, true);

DOES WORK:

GetGame().GetPlayer().GetInputController().OverrideRaise(true, true);
Additional Information

Without it, it's going to be impossible to create custom AI

Event Timeline

Unknown Object (User) created this task.Apr 16 2019, 7:13 PM