REDNODE / GAME API

IAttack

abstract classnative name gameIAttacknative

extends IScriptable › ISerializable

Extended by 2 types

Attack_GameEffect Attack_Projectile

Methods 14

native func AddStatModifier(modifierData: ref<gameStatModifierData>) -> Bool
static native func Create(context: AttackInitContext) -> ref<IAttack>
native func GetDebugData() -> AttackDebugData
static native func GetExplosiveHitAttack(attackRecord: ref<Attack_Record>) -> ref<Attack_GameEffect_Record>
native func GetParameterBool(parameterName: CName, opt defaultValue: Bool) -> Bool
native func GetParameterFloat(parameterName: CName, opt defaultValue: Float) -> Float
native func GetParameterInt(parameterName: CName, opt defaultValue: Int32) -> Int32
native func GetParameterName(parameterName: CName, opt defaultValue: CName) -> CName
native func GetRecord() -> wref<Attack_Record>
native func GetStatModList(statModList: array<ref<gameStatModifierData>>)
native func SetDamageProjectionActive(active: Bool)
native func SetPreviewActive(previewActive: Bool)
native func SetVehicleWeaponPreviewActive(previewActive: Bool, positionProvider: ref<IPositionProvider>, forwardProvider: ref<IOrientationProvider>, range: Float, angle: Float, weaponIndex: Uint32, inTPP: Bool, tppScale: Float)
native func StartAttack() -> Bool