Ppgtjmad / SimpleShops

[HG] Simple Shops
27 stars 8 forks source link

XP/Money/Kill reward not working #70

Closed Pamyux3 closed 2 years ago

Pamyux3 commented 2 years ago

Hiya and thank you for this amazing addon.

I am working on my mission file (MP) with a test AI (east side) spawned manually from the editor that i kill for testing. I do not receive XP, kill or money when i kill the AI, why ?

I have check the config and it is set to TRUE also paycheck works and refresh the HUD normally.

Do i have to spawn the ai with specific params ?

Thanks,

Ppgtjmad commented 2 years ago

Hello @Pamyux3

To make it work you have to add this in the unit's init:

[this] call HG_fnc_aiUnitSetup

Thanks for using SimpleShops.

Pamyux3 commented 2 years ago

Thank you for such a fast answer. I will try it as soon as possible.

Ppgtjmad commented 2 years ago

I guess the problem is solved, closing this ticket.