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
Self Opening/Closing Doors
Carlos2295 Offline
Junior Member

Posts: 16
Threads: 5
Joined: Sep 2014
Reputation: 0
#1
Self Opening/Closing Doors

Hi there, sorry for asking so many questions, but I really need to lol. Anyways, what I'm trying to do is make a door that will open upon entering a scripting area. Also, I was hoping to make another door that would close upon entering the room. Here's what I have so far for my script. However, it doesn't seem to work. I have the door open amount set to 1.

PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""dooropen""DoorFunction"true1); 
}
void OnEnter()
{
    
PlayMusic("06_amb"true0.91.01true);
}
void DoorFunction(string &in asParentstring &in asChildint alState)
{
    
SetMoveObjectStateExt("castle_1"051010false);
    
PlaySoundAtEntity("""react_breath_slow.snt""Player"0false);
    
PlaySoundAtEntity("""react_scare""Player"0false);
    
PlaySoundAtEntity("""close_door.snt""Player"0false);
    
GiveSanityDamage(5.0ftrue);

[/php]
10-02-2014, 02:32 AM
Website Find


Messages In This Thread
Self Opening/Closing Doors - by Carlos2295 - 10-02-2014, 02:32 AM
RE: Self Opening/Closing Doors - by Romulator - 10-02-2014, 03:39 AM
RE: Self Opening/Closing Doors - by Mudbill - 10-02-2014, 09:47 AM



Users browsing this thread: 1 Guest(s)