OverrideRaise, OverrideAimChangeX and OverrideAimChangeY does not work on custom entities but it does work if you execute it for the player you are playing
Description
Description
Details
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