FlyingTanksHateGravity Posted June 5, 2011 Share Posted June 5, 2011 I am trying to make a script that will move the player to a chair (which has a persistant id) where the player will sit. I was able to move the player by doing: Player.MoveTo AQuestChair000 : which worked just fine but the player wasn't sitting in the chair. Link to comment Share on other sites More sharing options...
ThomasKra Posted June 5, 2011 Share Posted June 5, 2011 That is because your script isn't calling for the player to sit down, only to move him to the chair. I am unsure if you can force a player to sit down in a script, but I do know that you can check for if the player is sitting. You might be better off simply asking the player to sit down and continuing the quest when he/she obliges rather than forcing him to sit. Like this: if player.getSitting == 1 ;do stuff set doOnce to 1; defined variable, this will make sure this portion of the script only executes once else ;do something else until the player sits down endif Link to comment Share on other sites More sharing options...
FlyingTanksHateGravity Posted June 6, 2011 Author Share Posted June 6, 2011 But this is part of a scene where I need to have the player and several other npcs sitting with DisablePlayerControls. Link to comment Share on other sites More sharing options...
rickerhk Posted June 6, 2011 Share Posted June 6, 2011 Wait a few frames after the moveto, then tryAQuestChair000.Activate Playerto sit in the chair. Then wait some more while you check if the player is sitting before proceeding to the next step in the script. Edit:GetSitting == 3 is the result for actually in the chair, sitting. Link to comment Share on other sites More sharing options...
FlyingTanksHateGravity Posted June 7, 2011 Author Share Posted June 7, 2011 The Chair.Activate Player worked. Thank You Link to comment Share on other sites More sharing options...
Recommended Posts