Skip to content

SetPlayerPositionAction ​

Inherits: PlayerEventAction < EventAction < Resource

Action to teleport/move player(s) to a specific position

Properties ​

Vector3target_positionVector3.ZERO
boolinterrupt_castingtrue
boolstop_movementtrue

Methods ​

Stringget_player_function_description()
boolexecute_on_players( players: Array[Player] )
Dictionarysave()
voidload_data( data: Dictionary )

Property descriptions ​

Vector3 target_position = Vector3.ZERO ​

Target position to move the player(s) to

bool interrupt_casting = true ​

Whether to interrupt casting when teleporting

bool stop_movement = true ​

Whether to stop movement state (velocity, navigation)

Method descriptions ​

String get_player_function_description() ​

Override to provide action-specific description

bool execute_on_players( players: Array[Player] ) ​

Execute action on target players

Dictionary save() ​

Save action state to a dictionary

void load_data( data: Dictionary ) ​

Load action state from a dictionary