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
Problem with door-opening script
ArtoLP Offline
Junior Member

Posts: 9
Threads: 5
Joined: Feb 2012
Reputation: 0
#1
Problem with door-opening script

Hello everybody! Smile

I've got a problem with the opening of a specific door. I want it to open slowly and creepy, but it doesn't open at all Dodgy

Well, when I trigger the script ingame, i can hear the "door-touch-sound" Big Grin
You now what I mean, the sound that plays when you just touch the door, but don't move it. What is wrong?



void OnStart()
{
AddEntityCollideCallback("Player","door_open","dooropen",true,1);
}



void dooropen(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorDisableAutoClose("door4", true);
SetSwingDoorClosed("door4", false, true);

AddPropForce("door4",-600,-600,-600,"world");
}


Thank you! Smile
11-17-2013, 02:23 PM
Find


Messages In This Thread
Problem with door-opening script - by ArtoLP - 11-17-2013, 02:23 PM
RE: Problem with door-opening script - by ArtoLP - 11-17-2013, 03:32 PM
RE: Problem with door-opening script - by Daemian - 11-17-2013, 09:42 PM



Users browsing this thread: 1 Guest(s)