|
Arma Reforger Script API
|
Effect assigned to the consumable gadget. More...
Public Member Functions | |
| bool | ActivateEffect (IEntity target, IEntity user, IEntity item, ItemUseParameters animParams=null) |
| void | ApplyEffect (notnull IEntity target, notnull IEntity user, IEntity item, ItemUseParameters animParams) |
| Apply consumable effect. | |
| bool | CanApplyEffect (notnull IEntity target, notnull IEntity user, out SCR_EConsumableFailReason failReason=SCR_EConsumableFailReason.NONE) |
| Condition whether this effect can be applied. | |
| bool | UpdateAnimationCommands (IEntity user) |
| Update the animCommands for all animations related to consumable. | |
| ItemUseParameters | GetAnimationParameters (IEntity item, notnull IEntity target, ECharacterHitZoneGroup group=ECharacterHitZoneGroup.VIRTUAL) |
| bool | GetDeleteOnUse () |
| float | GetApplyToOtherDuraction () |
| TAnimGraphCommand | GetApplyToSelfAnimCmnd (IEntity user) |
| TAnimGraphCommand | GetApplyToOtherAnimCmnd (IEntity user) |
Public Attributes | |
| SCR_EConsumableType | m_eConsumableType |
Protected Attributes | |
| TAnimGraphCommand | m_iPlayerApplyToSelfCmdId = -1 |
| TAnimGraphCommand | m_iPlayerApplyToOtherCmdId = -1 |
| TAnimGraphCommand | m_iPlayerReviveCmdId = -1 |
| bool | m_bDeleteOnUse |
| float | m_fApplyToSelfDuration |
| float | m_fApplyToOtherDuration |
Effect assigned to the consumable gadget.
| bool SCR_ConsumableEffectBase.ActivateEffect | ( | IEntity | target, |
| IEntity | user, | ||
| IEntity | item, | ||
| ItemUseParameters | animParams = null ) |
| [in] | target | |
| [in] | user | |
| [in] | item | |
| [in] | animParams |
Implemented in SCR_ConsumableEffectHealthItems.
| void SCR_ConsumableEffectBase.ApplyEffect | ( | notnull IEntity | target, |
| notnull IEntity | user, | ||
| IEntity | item, | ||
| ItemUseParameters | animParams ) |
Apply consumable effect.
| [in] | target | is the character who is having the effect applied |
| [in] | user | |
| [in] | item | |
| [in] | animParams |
Implemented in SCR_ConsumableBandage, SCR_ConsumableEffectHealthItems, SCR_ConsumableSalineBag, and SCR_ConsumableTourniquet.
| bool SCR_ConsumableEffectBase.CanApplyEffect | ( | notnull IEntity | target, |
| notnull IEntity | user, | ||
| out SCR_EConsumableFailReason | failReason = SCR_EConsumableFailReason.NONE ) |
Condition whether this effect can be applied.
| [in] | target | is the character who is having the effect applied |
| [in] | user | |
| [in] | failReason | is reason why CanApplyEffect returned false |
Implemented in SCR_ConsumableBandage, SCR_ConsumableMorphine, SCR_ConsumableSalineBag, and SCR_ConsumableTourniquet.
| ItemUseParameters SCR_ConsumableEffectBase.GetAnimationParameters | ( | IEntity | item, |
| notnull IEntity | target, | ||
| ECharacterHitZoneGroup | group = ECharacterHitZoneGroup::VIRTUAL ) |
| [in] | target | |
| [in] | group |
Implemented in SCR_ConsumableBandage, SCR_ConsumableMorphine, SCR_ConsumableSalineBag, and SCR_ConsumableTourniquet.
| TAnimGraphCommand SCR_ConsumableEffectBase.GetApplyToOtherAnimCmnd | ( | IEntity | user | ) |
| [in] | user |
| float SCR_ConsumableEffectBase.GetApplyToOtherDuraction | ( | ) |
| TAnimGraphCommand SCR_ConsumableEffectBase.GetApplyToSelfAnimCmnd | ( | IEntity | user | ) |
| [in] | user |
| bool SCR_ConsumableEffectBase.GetDeleteOnUse | ( | ) |
| bool SCR_ConsumableEffectBase.UpdateAnimationCommands | ( | IEntity | user | ) |
Update the animCommands for all animations related to consumable.
Implemented in SCR_ConsumableEffectHealthItems.
|
protected |
| SCR_EConsumableType SCR_ConsumableEffectBase.m_eConsumableType |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |