Author Topic: SetImageAmmo, SetImageTrigger, and setImageLoaded  (Read 422 times)

What does each do? I would love to know.

setImageAmmo and setImageLoaded are simply convenience functions that allow you to interact with the image state system outside of it.

setImageTrigger lets you simulate the image trigger being pressed (shoot weapon, etc.).

Here's a relevant quote.

You'll want to create at least one new state, using the fields "stateTransitionOnAmmo" and "stateTransitionOnNoAmmo," which work like the trigger down/up and timeout ones. Then you can use %player.setImageAmmo(%slot, 0 or 1) to control what will happen when you get to that state.