Aller au contenu

throwItemController

Permet à un objet de lancer une balle lorsqu'un joueur appuie sur shootKey

requireshoot()holdItem()
triggers on self"moved""drop item"
parameters
ParameterDefault ValueTypeDescription
shootKeystring"space"
keyPressToShootbooleantrue
mousePressToShootbooleantrue
example
throwItemController({
shootKey: "space",
keyPressToShoot: true,
mousePressToShoot: true
}),