Actions List - gamehunt/CustomNPCs GitHub Wiki

BroadcastAction

Arguments:

text - broadcast's text

global - if true, broadcast will be sent to all players

DieAction

Arguments:

spawn_ragdoll - if true NPCs ragdoll will be spawned

ConsumeHealthAction

Arguments:

amount - amount of health to be consumed from player

GiveHeathAction

Arguments:

amount - amount of health to give

EnableEffectAction

Arguments:

type - string of effect that will be enabled

DisableEffectAction

Arguments:

type - string of effect that will be disabled

GiveItemAction

Arguments:

item_type - id of an item, that will be given to player

RetrieveItemAction

Arguments:

item_type - id of an item, that will be retrieved from player

HeldItemAction

Arguments:

item_type - id of an item, that NPC will hold

BlackoutAction

Arguments:

duration - blackout duration

hcz_only - if true, blackout will be only in hard contaiment zone

ChangeRoleAction

Arguments:

preserve_position - if true, position of the player will be saved, if false player will be teleported on role's spawn

role - new player's role

ChangeSelfRoleAction

Arguments:

preserve_position - if true, position of the NPC will be saved, if false NPC will be teleported on role's spawn

role - new NPC's role

NukeStartAction

Arguments:

instant - if true, detonation will be instant

lock - if true, warhead can't be deactivated

NukeStopAction

Arguments: Nope

StartDecontaminationAction

Arguments: Nope

SwitchGodAction

Arguments:

value - value for godmode on current NPC

MoveAction

Makes NPC walking to the specific direction

Arguments:

direction - forward, backward, right, left or jump

duration - duration of the walk

RotationAction

Rotates NPC by specific angles

Arguments:

absolute - if true angles are absolute, otherwise relative to current

x - x axis angle

y - y axis angle

RoundEndAction

Arguments: Nope

CassieAction

Arguments:

message - CASSIE message

held - make hold (?)

noise - male noise (?)

DropItemAction

Arguments:

item_type - item, that NPC will drop

NavEnqueueAction

Navigation HowTO

Adds node to NPC's navigation queue

Arguments:

node - node to add

force - if true, NPC will ignore navigation queue and will go to this node directly

NavClearAction

Navigation HowTO

Clears NPC navigation queue

Arguments: Nope

FollowAction

Makes NPC follow player

Arguments: Nope

StopFollowAction

Makes NPC stop to follow player

Arguments:

room - if not none, NPC will stop to follow only in the specified room

FireEventAction

Arguments:

event_name - calls actions from event with token event_name (It can be custom)

ShootAction

Makes NPC shooting in the player

hitbox - hitbox type

amount - amount of shots

GoToRoomAction

Makes NPC going to the specified room.

room - room

ControlDoorAction

Allows NPC to control the doors

door - door

type - lock,ulock,open,close or destroy - Action to do

ToggleAIAction

Arguments:

value - value for ai_enabled on current NPC