Blockland Forums > Modification Help

Player movement functions?

Pages: (1/1)

darerd:

Can I have functions for when a player jumps, crouches, and walks? And possibly a function for when he turns neutral?

Amade:

armor::onTrigger is used for several basic control functions. Its arguments are as follows:
armor::onTrigger(%this, %obj, %slot, %val)
%this is the datablock of %obj, the player object calling the function. %slot is the slot (0 for primary fire, 1 for secondary fire (there's no default keybind for this), 2 for jump, and 3 for crouch). %val is whether the button is being pressed or released (0 for released, 1 for pressed).

I don't know of anything you could use for starting/stopping walking, though.

darerd:

Thanks. Locked.

Pages: (1/1)

Go to full version