跳到主要内容
版本:Next

OblivionMP.SDK.Common.Events

Structs​

DockEvent

A character sat down on, or lay down in, a piece of furniture.

DoorTransitionEvent

A door was opened or closed. The result is the door's state; a refused transition puts the actor's game back to it. A server raise leaves the actor null and reaches any door with Script.

HealthChangedEvent

HorseDismountedEvent

A character got off its horse.

HorseMountRequestedEvent

A character starts mounting a horse. The server names it as the rider and moves the horse to the rider's client.

ItemTransferEvent

LinkedPathPointsChangeEvent

A script enabled or disabled the path points a ref links, as the block's owner reports it.

LockChangeEvent

A lock was locked or unlocked. The result is the lock's state; a refused change puts the actor's game back to it. A server raise leaves the actor null and reaches any lock with Script.

LockpickClaimEvent

A player starts picking a lock. One picker per lock: the picker's own game opens the menu once the server agrees.

LockpickReleaseEvent

A player stopped picking a lock, picked or not.

PlacementChangeEvent

A script moved a ref within its cell, as the block's owner reports it. The result is the ref's transform.

PlayerConsumeEvent

A character ate or drank an item.

PresenceChangeEvent

A script enabled, disabled or destroyed a ref, as the block's owner reports it. The result is the ref's presence.

ScriptActivationEvent

A scripted ref was activated. The others replay the activation with the instigator's copy as the action ref; a null instigator stands for the ref itself, the way a chained activation or a server raise has no actor.

ScriptButtonChosenEvent

A player picked a button in a script's message box. The others hand the same button to their copy of the script.

ScriptDialogueResultEvent

A dialogue response ran its result script. The others run the same script with the talker's copy as the player.

ScriptHitEvent

A scripted ref was hit by an actor. The others raise the hit on their copy.

ScriptHitWithEvent

A scripted ref was hit with a weapon. The others raise the hit with that weapon on their copy.

ScriptTriggerEnteredEvent

An actor stepped into a scripted trigger. The others raise the trigger on their copy every tick until it leaves.

ScriptTriggerLeftEvent

An actor stepped out of a scripted trigger.

ScriptVariablesChangeEvent

A script wrote its variables on a ref, as the block's owner reports them. The result is the ref's script variables.

SequenceChangeEvent

A ref plays an animation sequence, as the block's owner reports it. The result is the ref's last finished sequence.

ShieldBashEvent

A character bashed another with its shield. The others replay the hit on their copies, the attacker's own game did it already.

SpellCastEvent

A character started casting a spell.

SpellReleaseCastEvent

A character released a spell it was casting, or fired a staff.

TimeChangeEvent

UndockEvent

A character got up from the furniture it was docked to.

WeatherChangeEvent

Enums​

DoorTransitionReject

Why a door transition is refused.

HorseMountReject

LinkedPathPointsChangeReject

Why a linked path points change is refused.

LockChangeReject

Why a lock change is refused.

LockpickReject

Why a player may not pick the lock.

PlacementChangeReject

Why a placement change is refused.

PresenceChangeReject

Why a presence change is refused.

ScriptEventReject

Why a script event stays with the client that raised it.

ScriptVariablesChangeReject

Why a script variables change is refused.

SequenceChangeReject

Why a sequence change is refused.