Barotrauma

Barotrauma

Barotrauma Workshop
You can build your own submarines and monsters with in-game editors and share your creations with other players. Imagine and experiment.
OnUse not working?
Im currently trying to make grenades activeable (Like flares), but i got stuck on making it happen when clicking left-click.

Currently, my code looks something like this:

<Throwable (Insert code here)>
<StatusEffect type="OnSecondaryUse" targettype="This" Condition="-25" duration="4" />
</Throwable>

This implements a visible timer to the grenade (Which should decrease the condition by 25 every 4 seconds), and instead of OnUse, i have OnSecondaryUse, which makes it activate when i throw it. If i remove Secondary, it just does nothing. Literally nothing.

So that's the problem, and i have no idea how to fix it. Did anyone encounter this problem before, and is there any solution? Thanks!
Last edited by YellowKnight; 13 Oct, 2023 @ 4:40am