1
0

Updated HOOK_PLAYER_MOVING documentation.

This commit is contained in:
Howaner 2014-08-16 18:49:24 +02:00
parent a68c70c900
commit 6c8baf66c8

View File

@ -11,9 +11,11 @@ return
Params = Params =
{ {
{ Name = "Player", Type = "{{cPlayer}}", Notes = "The player who has moved. The object already has the new position stored in it." }, { Name = "Player", Type = "{{cPlayer}}", Notes = "The player who has moved. The object already has the new position stored in it." },
{ Name = "OldPosition", Type = "{{Vector3d}}", Notes = "The old position." },
{ Name = "NewPosition", Type = "{{Vector3d}}", Notes = "The new position." },
}, },
Returns = [[ Returns = [[
If the function returns true, movement is prohibited. FIXME: The player's client is not informed.</p> If the function returns true, movement is prohibited.</p>
<p> <p>
If the function returns false or no value, other plugins' callbacks are called and finally the new If the function returns false or no value, other plugins' callbacks are called and finally the new
position is permanently stored in the cPlayer object.</p> position is permanently stored in the cPlayer object.</p>