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 Stop Player Look at [Solved]
ShipinShen Offline
Junior Member

Posts: 23
Threads: 7
Joined: Apr 2014
Reputation: 0
#1
Stop Player Look at [Solved]

Hey, maybe anyone can me help.
I want to let the player stop looking at the door.

//Door-Slam
void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("AutoDoor", true, true);
StartPlayerLookAt("AutoDoor", 9, 9, "door");
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
AddTimer("", 1, "stop");
}

void stop()
{
    StopPlayerLookAt();
}

If i write the StopPlayerLookAt(); in the func_slam, it wont even look at the door.
I think its quite simple, but i dont get it :/

ShipinShen - YouTube
(This post was last modified: 04-21-2014, 12:14 PM by ShipinShen.)
04-21-2014, 05:42 AM
Find


Messages In This Thread
Stop Player Look at [Solved] - by ShipinShen - 04-21-2014, 05:42 AM
RE: Stop Player Look at - by FlawlessHappiness - 04-21-2014, 10:36 AM
RE: Stop Player Look at - by ShipinShen - 04-21-2014, 12:14 PM



Users browsing this thread: 1 Guest(s)