Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
C_ScriptBindPlayer Methods

The methods of the C_ScriptBindPlayer class are listed here.

 
Name 
Description 
 
 
 
Name 
Description 
 
 
 
Syntax: Human.AddSoAction(wuid, type, name, interaction, enabled = true, disabled_reason = "")
Adds hint for given SO. Be careful, because of only one of them can be set up in at a same time.
 
 
 
 
Syntax: Player.CanBondHorse(horseEntityId)
Returns if the player can bond a target horse
 
 
 
 
Syntax: CanChangeStanceObject(Wuid stanceObjectId)
Returns true if player either does not use any stance smart object, or if stanceObjectId is the one being used
 
 
Syntax: Player.CanMountHorse(horseEntityId)
Returns if the player can mount a target horse
 
 
Syntax: Player.CanSleep()
Returns the result of the if the player can sleep and the message (E_SkipTimeMessage) as a pair
 
 
Syntax: Player.CanSleepAndReportProblem()
Returns bool and report why player cannot sleep right now.
 
 
Syntax: Player.ChangePlayerHeadLight("Archetype")
Recreates player head light with selected archetype.
 
 
 
 
 
 
 
 
 
 
 
 
Syntax: Player.GetFlyMode()
Returns fly mode of the player (FlyMode_Off, FlyMode_On, FlyMode_OnNoCollisions) 
 
 
 
 
 
 
 
 
 
Syntax: Player.IsCombatChatTarget(entityId)
Returns true when player is in combat danger and target is threat for player
 
 
Syntax: Player.IsLaying()
Returns true when player is laying
 
 
Syntax: Player.IsLockedToOpponent(entityId)
Returns true when player is locked in melee combat to this entity
 
 
Syntax: Player.IsSitting()
Returns true when player is sitting
 
 
 
 
Syntax: Player.OnBedPrepareForDialog(WUID speaker)
Wake up player and prepare him for dialog with speaker, if speaker is not specified player can end up in bed position
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Syntax: Player.SetAlcoTeleportTarget(targetWuid)
Sets target place for alcoteleport. Player will be teleported there at the end of unconciousness. Player must be unconscious when this is called, otherwise it is ignored. Set to INVALID_WUID (0) to cancel previous teleport request.
 
 
Syntax: Player.SetFlyMode(flyMode)
Sets fly mode of the player (FlyMode_Off, FlyMode_On, FlyMode_OnNoCollisions)
 
 
This is SetPlayerDog, a member of class C_ScriptBindPlayer. 
 
 
 
 
Copyright (c) 2012. All rights reserved.