Change Bullet Style

From LuaSTG Wiki
Jump to navigation Jump to search

A change bullet style node changes the type and color of a bullet. A change bullet style node can be used to change the color or type of a bullet after it is fired.


Parameters[edit | edit source]

A list of parameters of change bullet style node is shown below:

Parameters Function
Target (LuaSTG object) The bullet to set type/color of
Style (LuaSTG object class) The type to set to
Color (number) The color to set to


Side Effects[edit | edit source]

There are side effects for changing bullet style node. Notably the collision box will be set as well when the code is executed. In other words, this will change the attributes .a and .b of the object.