Table of Contents

Class SpawnedItemEntity

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public class SpawnedItemEntity : UsableMissionObject, IFocusable, IUsable, IVisible
Inheritance
SpawnedItemEntity
Implements
Inherited Members

Constructors

SpawnedItemEntity()

public SpawnedItemEntity()

Fields

WeaponName

public string WeaponName

Field Value

string

Properties

HasLifeTime

public bool HasLifeTime { get; set; }

Property Value

bool

IsRemoved

public bool IsRemoved { get; }

Property Value

bool

LockUserFrames

protected override bool LockUserFrames { get; }

Property Value

bool

SpawnFlags

public Mission.WeaponSpawnFlags SpawnFlags { get; }

Property Value

Mission.WeaponSpawnFlags

WeaponCopy

public MissionWeapon WeaponCopy { get; }

Property Value

MissionWeapon

Methods

AttachWeaponToWeapon(MissionWeapon, ref MatrixFrame)

public void AttachWeaponToWeapon(MissionWeapon attachedWeapon, ref MatrixFrame attachLocalFrame)

Parameters

attachedWeapon MissionWeapon
attachLocalFrame MatrixFrame

ConsumeWeaponAmount(short)

public void ConsumeWeaponAmount(short consumedAmount)

Parameters

consumedAmount short

GetActionMessage(ItemObject, bool)

public TextObject GetActionMessage(ItemObject weaponToReplaceWith, bool fillUp)

Parameters

weaponToReplaceWith ItemObject
fillUp bool

Returns

TextObject

GetDescriptionMessage(bool)

public TextObject GetDescriptionMessage(bool fillUp)

Parameters

fillUp bool

Returns

TextObject

GetDescriptionText(GameEntity)

public override string GetDescriptionText(GameEntity gameEntity = null)

Parameters

gameEntity GameEntity

Returns

string

GetInfoTextForBeingNotInteractable(Agent)

public override TextObject GetInfoTextForBeingNotInteractable(Agent userAgent)

Parameters

userAgent Agent

Returns

TextObject

GetTickRequirement()

public override ScriptComponentBehavior.TickRequirement GetTickRequirement()

Returns

ScriptComponentBehavior.TickRequirement

Initialize(MissionWeapon, bool, WeaponSpawnFlags, in Vec3)

public void Initialize(MissionWeapon weapon, bool hasLifeTime, Mission.WeaponSpawnFlags spawnFlags, in Vec3 fakeSimulationVelocity)

Parameters

weapon MissionWeapon
hasLifeTime bool
spawnFlags Mission.WeaponSpawnFlags
fakeSimulationVelocity Vec3

IsBanner()

public bool IsBanner()

Returns

bool

IsDisabledForAgent(Agent)

public override bool IsDisabledForAgent(Agent agent)

Parameters

agent Agent

Returns

bool

IsQuiverAndNotEmpty()

public bool IsQuiverAndNotEmpty()

Returns

bool

IsReadyToBeDeleted()

public bool IsReadyToBeDeleted()

Returns

bool

IsStuckMissile()

public bool IsStuckMissile()

Returns

bool

OnInit()

protected override void OnInit()

OnPhysicsCollision(ref PhysicsContact)

protected override void OnPhysicsCollision(ref PhysicsContact contact)

Parameters

contact PhysicsContact

OnPreInit()

protected override void OnPreInit()

OnRemoved(int)

protected override void OnRemoved(int removeReason)

Parameters

removeReason int

OnTick(float)

protected override void OnTick(float dt)

Parameters

dt float

OnTickOccasionally(float)

protected override void OnTickOccasionally(float currentFrameDeltaTime)

Parameters

currentFrameDeltaTime float

OnTickParallel2(float)

protected override void OnTickParallel2(float dt)

Parameters

dt float

OnUse(Agent)

public override void OnUse(Agent userAgent)

Parameters

userAgent Agent

OnUseStopped(Agent, bool, int)

public override void OnUseStopped(Agent userAgent, bool isSuccessful, int preferenceIndex)

Parameters

userAgent Agent
isSuccessful bool
preferenceIndex int

RequestDeletionOnNextTick()

public void RequestDeletionOnNextTick()

StopPhysicsAndSetFrameForClient(MatrixFrame, GameEntity)

public void StopPhysicsAndSetFrameForClient(MatrixFrame frame, GameEntity parent)

Parameters

frame MatrixFrame
parent GameEntity

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).