Table of Contents

Class UseVendingMachineSpec

Namespace
S1API.Entities.Schedule
Assembly
S1API.dll

Specifies an action that makes an NPC use a vending machine at a scheduled time.

public sealed class UseVendingMachineSpec : IScheduleActionSpec
Inheritance
UseVendingMachineSpec
Implements
Inherited Members
Extension Methods

Remarks

This action creates a ScheduleOne.NPCs.Schedules.NPCSignal_UseVendingMachine that will make the NPC interact with a vending machine. The machine can be specified by GUID, or if not specified, the NPC will use the nearest available vending machine.

Constructors

UseVendingMachineSpec()

public UseVendingMachineSpec()

Properties

MachineGUID

Gets or sets the GUID of the specific vending machine to use.

public string MachineGUID { get; set; }

Property Value

string

The vending machine GUID, or null to use the nearest machine.

Remarks

If specified, the NPC will use this specific vending machine. If not specified or if the machine cannot be found, the NPC will use the nearest available vending machine instead.

Name

Gets or sets the optional name for this action.

public string Name { get; set; }

Property Value

string

The action name, or null to use the default name "UseVending".

StartTime

Gets or sets the time when this action should start, in minutes from midnight.

public int StartTime { get; set; }

Property Value

int

The start time in minutes (0-1439 for a 24-hour day).