diff --git a/docs/index.html b/docs/index.html index 91fca64de..1e9d8021d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -27427,8 +27427,8 @@
damage_dealer
can be set to nil.optional<bool> damage(Movable self, int damage_dealer_uid, int damage_amount, int stun_time, float velocity_x, float velocity_y, int iframes)
optional<bool> damage(Movable self, Entity damage_dealer, int damage_amount, DAMAGE_TYPE damage_flags, Vec2 velocity, int unknown_damage_phase, int stun_amount, int iframes, bool unknown_is_final)
damage_dealer
can be set to nil.nil damage(Movable self, int damage_dealer_uid, int damage_amount, int stun_time, float velocity_x, float velocity_y, int iframes)
nil damage(Movable self, Entity damage_dealer, int damage_amount, DAMAGE_TYPE damage_flags, Vec2 velocity, int unknown_damage_phase, int stun_amount, int iframes, bool unknown_is_final)
damage_dealer
can be set to nil.Search script examples for DAMAGE_TYPE
-16bit bitmask used in Movable::regular_damage. Can be many things, like 0x2024 = hit by a burning object that was thrown by an explosion.
+16bit bitmask used in Movable::damage. Can be many things, like 0x2024 = hit by a burning object that was thrown by an explosion.
bool | -damage(int damage_dealer_uid, int damage_amount, int stun_time, float velocity_x, float velocity_y, int iframes) | -Damage the movable by the specified amount, stuns and gives it invincibility for the specified amount of frames and applies the velocities Returns: true if entity was affected, damage_dealer should break etc. false if the event should be ignored by damage_dealer? |
+damage(Entity damage_dealer, int damage_amount, DAMAGE_TYPE damage_flags, Vec2 velocity, int unknown_damage_phase, int stun_amount, int iframes, bool unknown_is_final) | +Damage the movable by the specified amount, stuns and gives it invincibility for the specified amount of frames and applies the velocities. damage_dealer can be set to nil.Returns: true if entity was affected, damage_dealer should break etc. false if the event should be ignored by damage_dealer? |
vector<int> | @@ -27558,12 +27558,12 @@||||
CallbackId | set_pre_damage(function fun) | -Hooks before the virtual function. The callback signature is optional<bool> damage(Movable self, int damage_dealer_uid, int damage_amount, int stun_time, float velocity_x, float velocity_y, int iframes) Virtual function docs: Damage the movable by the specified amount, stuns and gives it invincibility for the specified amount of frames and applies the velocities Returns: true if entity was affected, damage_dealer should break etc. false if the event should be ignored by damage_dealer? |
+Hooks before the virtual function. The callback signature is optional<bool> damage(Movable self, Entity damage_dealer, int damage_amount, DAMAGE_TYPE damage_flags, Vec2 velocity, int unknown_damage_phase, int stun_amount, int iframes, bool unknown_is_final) Virtual function docs: Damage the movable by the specified amount, stuns and gives it invincibility for the specified amount of frames and applies the velocities. damage_dealer can be set to nil.Returns: true if entity was affected, damage_dealer should break etc. false if the event should be ignored by damage_dealer? |
|
CallbackId | set_post_damage(function fun) | -Hooks after the virtual function. The callback signature is nil damage(Movable self, int damage_dealer_uid, int damage_amount, int stun_time, float velocity_x, float velocity_y, int iframes) Virtual function docs: Damage the movable by the specified amount, stuns and gives it invincibility for the specified amount of frames and applies the velocities Returns: true if entity was affected, damage_dealer should break etc. false if the event should be ignored by damage_dealer? |
+Hooks after the virtual function. The callback signature is nil damage(Movable self, Entity damage_dealer, int damage_amount, DAMAGE_TYPE damage_flags, Vec2 velocity, int unknown_damage_phase, int stun_amount, int iframes, bool unknown_is_final) Virtual function docs: Damage the movable by the specified amount, stuns and gives it invincibility for the specified amount of frames and applies the velocities. damage_dealer can be set to nil.Returns: true if entity was affected, damage_dealer should break etc. false if the event should be ignored by damage_dealer? |
|
CallbackId | @@ -29987,7 +29987,7 @@