SetLeader (script event)

Game class

This event operates on an instance of the game class type {{{gameclass}}}

Description

Get / Set the current leader.

Usage

void setLeader( entity leader )

Parameters

  • tba

Examples

// sets the player as leader for the npc
$npc_1.setLeader( $player1 );

Notes

Setting the leader to $null_entity will clear it.