You know what i have...

MrMessyHair

Noob in BLua
Hello people. I want to know how to spawn dust on the ground, but when the player Z position is equal to floorz/ceiling, like hover dust.
 
Hello people. I want to know how to spawn dust on the ground, but when the player Z position is equal to floorz/ceiling, like hover dust.
Just use a P_IsObjectOnGround(mobj_t) function to check if the player is grounded. The function returns true if the player is on the floor, or ceiling if gravity is inverted

To make the dust effect itself, you can use the P_SpawnSkidDust(mobj_t, radius, sound) function to spawn skid dust. If you want more customization, you can use P_SpawnMobj(x, y, z, type) instead, then you can change some variables of the object to make the dust behave as you wish.
You can find a list with every object type here.
 
You don't. P_IsObjectOnGround checks whenever the player is grounded and this works for ceilings when the player's gravity is reversed.
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top