mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
/**********************************************************************
|
|
* Copyright (c)2000-2002 Sony Online Entertainment Inc.
|
|
* All Rights Reserved
|
|
*
|
|
* Title: player_seated.script
|
|
* Description: script for handling seated players
|
|
* @author $Author:$
|
|
* @version $Revision:$
|
|
**********************************************************************/
|
|
|
|
/***** INCLUDES ********************************************************/
|
|
|
|
include library.furniture;
|
|
|
|
/***** CONSTANTS *******************************************************/
|
|
|
|
|
|
/***** TRIGGERS ********************************************************/
|
|
trigger OnAttach()
|
|
{
|
|
if ( !hasObjVar(self, furniture.VAR_PLAYER_SEAT_ID) )
|
|
{
|
|
detachScript(self, furniture.SCRIPT_PLAYER_SEATED);
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnChangedPosture(int before, int after)
|
|
{
|
|
if ( before == POSTURE_SITTING )
|
|
{
|
|
furniture.unseat(self);
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnEnteredCombat()
|
|
{
|
|
queueCommand(self, ##"stand", null, "", COMMAND_PRIORITY_FRONT);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnLogout()
|
|
{
|
|
furniture.unseat(self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
|
|
/***** TRIGGERS ********************************************************/
|