Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

actor_on_weapon_fired #5

Open
GhenTuong opened this issue Sep 19, 2022 · 0 comments
Open

actor_on_weapon_fired #5

GhenTuong opened this issue Sep 19, 2022 · 0 comments

Comments

@GhenTuong
Copy link

src\xrGame\WeaponMagazinedWGrenade.cpp

#ifndef EXTENDED_WEAPON_CALLBACKS
CGameObject* object = smart_cast<CGameObject*>(H_Parent());
if (object)
object->callback(GameObject::eOnWeaponFired)(object->lua_game_object(), this->lua_game_object(), iAmmoElapsed);
#endif

Change #ifndef to #ifdef

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant