14enum SCR_EConsumableFailReason
27class SCR_ConsumableEffectBase : Managed
33 [
Attribute(
"true", UIWidgets.CheckBox,
"Whether consumable should be deleted directly after completing use",
category:
"General")]
34 protected bool m_bDeleteOnUse;
36 [
Attribute(
"1", UIWidgets.EditBox,
"Duration of the animation for using consumable on self",
category:
"General")]
37 protected float m_fApplyToSelfDuration;
39 [
Attribute(
"1", UIWidgets.EditBox,
"Duration of the animation for using consumable on other",
category:
"General")]
40 protected float m_fApplyToOtherDuration;
53 ChimeraCharacter character = ChimeraCharacter.Cast(user);
57 CharacterControllerComponent controller = character.GetCharacterController();
65 activatedAction = controller.TryUseItemOverrideParams(animParams);
68 activatedAction = controller.TryUseItem(item);
70 return activatedAction;
79 void ApplyEffect(notnull
IEntity target, notnull
IEntity user,
IEntity item, ItemUseParameters animParams);
87 bool CanApplyEffect(notnull
IEntity target, notnull
IEntity user, out SCR_EConsumableFailReason failReason = SCR_EConsumableFailReason.NONE);
91 bool UpdateAnimationCommands(
IEntity user);
99 ItemUseParameters
params = ItemUseParameters();
101 params.SetAllowMovementDuringAction(
false);
102 params.SetKeepInHandAfterSuccess(
false);
103 params.SetCommandID(GetApplyToSelfAnimCmnd(target));
104 params.SetCommandIntArg(1);
105 params.SetCommandFloatArg(0.0);
106 params.SetMaxAnimLength(m_fApplyToSelfDuration);
114 bool GetDeleteOnUse()
116 return m_bDeleteOnUse;
121 float GetApplyToOtherDuraction()
123 return m_fApplyToOtherDuration;
131 UpdateAnimationCommands(user);
132 return m_iPlayerApplyToSelfCmdId;
140 UpdateAnimationCommands(user);
141 return m_iPlayerApplyToOtherCmdId;
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
enum SCR_EConsumableType DAMAGED
enum SCR_EConsumableType ALREADY_APPLIED
enum SCR_EConsumableType NOT_BLEEDING
enum SCR_EConsumableType IS_BLEEDING
enum SCR_EConsumableType UNKOWN
SCR_EConsumableType
Type of consumable gadget.
void ActivateEffect(EResourcePlayerInteractionType interactionType, SCR_ResourceComponent resourceComponentFrom, SCR_ResourceComponent resourceComponentTo, EResourceType resourceType, float resourceValue)
enum EVehicleType IEntity
@ NONE
When Shape is created and not initialized yet.
SCR_FieldOfViewSettings Attribute