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 I need a help please
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#1
Exclamation  I need a help please

Ok what i wanna and what i try to do is to make a script when player enter some kinda room and step there are 2 areas (i make it so same when he enter 1 he will enter and 2 area in the same time) so the area 1 should make him look back what it does,so while he is looking back or turning around then timer from area 2 should react so then doors HARD close and lock so there is 1 key in room and when i make it pick up just to pick up key doors unlock (without using key)

My .hps

Spoiler below!
void OnStart()

{
AddEntityCollideCallback("Player", "CloseDoor", "CollideLockDoor", true, 1);
AddEntityCollideCallback("Player", "Area01", "LookBack01", true, 1);
AddTimer("DoorDown", 3, "CollideLockDoor");
}

void LookBack01(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("Door01", 2, 25, "CallbackName");
AddTimer("", 3, "StopLookingAtDoor");
}

void StopLookingAtDoor(string &in asTimer)
{
StopPlayerLookAt();
}

void CollideLockDoor(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorLocked("Door01", true, true);

PlaySoundAtEntity("bang", "scare_slam_door", "castle_1", 0.0f, false);
StartScreenShake(0.02f, 1.0f, 0.5f, 1.0f);
}

Problems:

Spoiler below!
1:He turns behind but the doors are closed till he turns behind!
2:Sound is not appearing

It is IFC (isolated full conversion) so maybe i need put some sounds in my files ?

(This post was last modified: 05-14-2014, 06:04 PM by Straxedix.)
05-14-2014, 06:01 PM
Find


Messages In This Thread
I need a help please - by Straxedix - 05-14-2014, 06:01 PM
RE: I need a help please - by Neelke - 05-14-2014, 06:11 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:18 PM
RE: I need a help please - by Neelke - 05-14-2014, 06:19 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:20 PM
RE: I need a help please - by Neelke - 05-14-2014, 06:21 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:22 PM
RE: I need a help please - by Neelke - 05-14-2014, 06:25 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:31 PM
RE: I need a help please - by Neelke - 05-14-2014, 06:35 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:50 PM
RE: I need a help please - by Statyk - 05-14-2014, 06:54 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:56 PM
RE: I need a help please - by Neelke - 05-14-2014, 08:49 PM
RE: I need a help please - by Straxedix - 05-15-2014, 09:35 AM
RE: I need a help please - by Red - 05-15-2014, 02:46 PM
RE: I need a help please - by Straxedix - 05-15-2014, 03:22 PM
RE: I need a help please - by Neelke - 05-15-2014, 03:50 PM
RE: I need a help please - by Traggey - 05-15-2014, 04:41 PM
RE: I need a help please - by Straxedix - 05-15-2014, 07:00 PM
RE: I need a help please - by Neelke - 05-15-2014, 08:13 PM
RE: I need a help please - by Straxedix - 05-15-2014, 08:14 PM
RE: I need a help please - by Neelke - 05-15-2014, 08:19 PM
RE: I need a help please - by Straxedix - 05-15-2014, 08:26 PM
RE: I need a help please - by Neelke - 05-15-2014, 09:04 PM



Users browsing this thread: 1 Guest(s)