Browsing Wiremod's section
← Back to ACE
🔁

Mirrored article

This page is synced automatically from the wiremod/wire GitHub wiki (last synced 1 hour ago). Edits made here will be overwritten on the next sync — contribute on the source wiki instead.

e2 docs damage

📄 WikiUpdated 1 hour ago•0 views
Damage = Damage:isType( Type) Returns whether the damage contains the type flag provided. For example isType(_DMG_BLAST) would return 1 if the damage contains blast damage. (1 ops) = Damage:getAmount(

Jump to table of contents

Damage
= Damage:isType( Type)
Returns whether the damage contains the type flag provided. For example isType(_DMG_BLAST) would return 1 if the damage contains blast damage. (1 ops)

= Damage:getAmount()
Returns the amount of damage dealt (1 ops)

= Damage:getPosition()
Returns the position where the damage was dealt (1 ops)

= Damage:getForce()
Returns the force of the damage dealt (1 ops)

= Damage:getInflictor()
Returns the inflictor (weapon) which caused the damage to be dealt (1 ops)

= Damage:getAttacker()
Returns the attacker which used the inflictor to deal the damage (1 ops)

= Damage:getAmmoType()
Returns the ammo type id of the damage dealt (1 ops)

:takeDamage( Amount)
Applies an amount of damage to the player. Requires wire_expression2_damage_enabled to be set to 1. (20 ops)

:takeDamage( Amount, Attacker)
Applies an amount of damage to the player with given attacker. Requires wire_expression2_damage_enabled to be set to 1. (20 ops)

:takeDamage( Amount, Attacker, Inflictor)
Applies an amount of damage to the player with given attacker and inflictor. Requires wire_expression2_damage_enabled to be set to 1. (20 ops)

blastDamage( Origin, Radius, Damage)
Creates blast damage at the position provided with specified radius and damage amount. Requires wire_expression2_damage_enabled to be set to 1. (10 ops)

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.