Blockland Forums > Modification Help

Image State setting

Pages: (1/1)

heedicalking:

How would I go about setting a certain image state when I right click, or just in general. Lets say I want to set it to state 7, how would I do that?

Destiny/Zack0Wack0:

There's no way to set it to a certain state, the only thing you can do is trigger a no ammo state on the object and then do what you want in the noammo state. If you want to use this method, take a look at Tier Tactical or any other ammo/weapon mod.

heedicalking:

whats the no ammo state like what would i put in to call it as that? would it be the:

--- Code: ---   stateTransitionOnAmmo[9] = "Ready";
   stateTransitionOnNoAmmo[9] = "PreReload";
--- End code ---
and what are the args for the setimageammo function? is the first one the image slot and the second true or false for ammo?

Destiny/Zack0Wack0:

They're the names of the state to switch to when the ammo state changes.
Also, yep.

heedicalking:

Is there a way to check the image state you are currently on?

Pages: (1/1)

Go to full version