detect swapping weapon set [SOLVED]

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
Granamir
Posts: 202
Joined: Wed Jan 07, 2015 7:19 pm

detect swapping weapon set [SOLVED]

Post by Granamir »

Hi
anyone know a way to detect if a champion is swapping weapon set?
I have an item with water breathing but i'd like to stop this effect if it's not on weapon set in use.
Ty
Last edited by Granamir on Sun Mar 15, 2015 12:29 pm, edited 1 time in total.
Eburt
Posts: 69
Joined: Thu Feb 05, 2015 5:44 am

Re: detect swapping weapon set

Post by Eburt »

onUnequipItem() will trigger on a weapon swap (or use onEquipItem() if you want it to trigger on switching to the weapon)
Granamir
Posts: 202
Joined: Wed Jan 07, 2015 7:19 pm

Re: detect swapping weapon set

Post by Granamir »

Thank you
Post Reply