OnClientPedStep

From Multi Theft Auto: Wiki
Revision as of 22:07, 5 November 2018 by Arran Fortuna (talk | contribs) (Created page with "{{Client event}} __NOTOC__ {{New feature/item|3.0157|1.5.6|14735| This event is called when a peds foot has come on to the ground after jumping or taking a full step. }} {{Not...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is called when a peds foot has come on to the ground after jumping or taking a full step.

[[{{{image}}}|link=|]] Note: This event is only triggered for peds that are streamed in

Parameters

 bool leftFoot
  • leftFoot: a bool representing if it was the left foot that moved.

Source

The source of this event is the ped who stepped.

Requirements

This template will be deleted.

Example

addEventHandler("onClientPedStep", localPlayer,
     function(leftFoot)
          if (leftFoot) then
               outputChatBox("Your left foot hit the ground.", 0, 255, 0)
          else
               outputChatBox("Your right foot hit the ground.", 0, 255, 0)
          end
     end
)

</section>

See Also

Client ped events


Client event functions