GameMaker Touhou Engine   Home   Downloads   Documentation

_BULLET_SET_EV_BEHAVIOR()


A script that sets which behavior a bullet should perform when a certain condition is met.


Returns: Void


Syntax:


_BULLET_SET_EV_BEHAVIOR(evid, param, bhid, re, bargs, obj, terminate)

Arguments:


Name Type Significance
evid* Non-negative Integer Which event to respond to.
param* Integer The event's parameter.
bhid Integer The behavior to perform (see _BULLET_BEHAVIOR macros).
re Non-negative Integer How many times the event (fulfillment of condition) can be triggered.
bargs Array The parameters relating to the given behavior.
obj Reference to Object The bullet to set the event for.
terminate Boolean Whether or not the bullet should stop peforming behaviors after it's done with it's last one. Set to -1 to keep the previously set value.

*See _EVENT_BEHAVIOR macros.