The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help MovePlayerHeadPos (NVM)
Verkehr Offline
Member

Posts: 60
Threads: 13
Joined: Oct 2016
Reputation: 1
#1
MovePlayerHeadPos (NVM)

(3rd post in a row, forever alone)

I keep having problems with the MovePlayerHeadPos command. I want the head to spawn as it's a bit below the regular level and then regulate itself back, but the head stays in the regular height!

void OnStart()
{  
    MovePlayerHeadPos(0, -0.5, 0, 1, 0);
    FadePlayerRollTo(-45, 100, 100);
    AddTimer("", 2, "standUp");
    AddTimer("", 3, "unlockMove");
    FadeOut(0);
    FadeIn(3);
    SetPlayerSanity(20);
    SetPlayerHealth(40);
    SetPlayerActive(false);
    AddUseItemCallback("", "key1_1", "door1_1", "multiDoor1", false);
    SetLocalVarInt("multiDoor", 0);
    SetEntityInteractionDisabled("hanging_lantern_wall_1", true);
}

void standUp(string &in asTimer){
    MovePlayerHeadPos(0, 0, 0, 0.5, 0);
    FadePlayerRollTo(0, 20, 20);
}

void unlockMove(string &in asTimer){
    SetPlayerActive(true);
    SetMessage("ScrText", "text1_1", 6);
}

Any help? :/

Note: it worked BEFORE I added the timers...
(This post was last modified: 12-16-2017, 11:21 PM by Verkehr.)
12-15-2017, 09:26 PM
Find


Messages In This Thread
MovePlayerHeadPos (NVM) - by Verkehr - 12-15-2017, 09:26 PM
RE: MovePlayerHeadPos - by Romulator - 12-16-2017, 01:09 AM
RE: MovePlayerHeadPos - by Verkehr - 12-16-2017, 12:38 PM
RE: MovePlayerHeadPos - by Verkehr - 12-16-2017, 11:20 PM



Users browsing this thread: 1 Guest(s)