跳到主要内容
版本:Next

Struct ScriptHitEvent

Namespace: OblivionMP.SDK.Common.Events
Assembly: OblivionMP.SDK.Common.dll

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

[NetworkedEvent(EventScope.Area, Policy.SubjectOwner, Reject = typeof(ScriptEventReject))]
public struct ScriptHitEvent

Inherited Members​

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties​

Area​

[Area]
public AreaId Area { readonly get; set; }

Property Value​

AreaId

Attacker​

[Subject]
public Character Attacker { readonly get; set; }

Property Value​

Character

Code​

This event's code on the wire, once the host has placed its mod's block.

public RelayMessageCode Code { get; }

Property Value​

RelayMessageCode

RefId​

public uint RefId { readonly get; set; }

Property Value​

uint

Script​

public FormId Script { readonly get; set; }

Property Value​

FormId