Files
dsrc/sku.0/sys.server/compiled/game/script/player/player_seated.script
T
2013-09-10 23:17:15 -07:00

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 ********************************************************/