OnPlayerInteractionStop

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 22:31, 14 August 2026 by QCherry (talk | contribs) (Update Lua event reference)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

onPlayerInteractionStop

Triggered when a replicated general interaction ends.

Availability

This event is available in server-side scripts.

Callback signature

onPlayerInteractionStop(playerId, kind, actionId, serverStartTimeMs)

Parameters

Name Type Description
playerId int The interacting player ID.
kind string The interaction kind, such as mining or sitting.
actionId int The replicated action ID.
serverStartTimeMs int Server time at which the action began.

Examples

Handle the event:

addEventHandler("onPlayerInteractionStop", root, function(playerId, kind, actionId, serverStartTimeMs)
    outputDebugString("onPlayerInteractionStop: player=" .. playerId .. " kind=" .. kind)
end)

Notes

  • Use the specialized mining and sitting events when the interaction type matters.