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
Make Cabinet Open By It Self
TheZhadowRider Offline
Junior Member

Posts: 4
Threads: 2
Joined: Feb 2016
Reputation: 0
#1
Make Cabinet Open By It Self

Hey I was wondering if it was possible to open one of the two cabinet doors by it self?
I have tried:
With rotateArea:
///////////////////////////////////////////////////////////////////////////////////////////////
void CabinetScare(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 2, "StopSound");
AddTimer("Cabinet", 0, "RotateArea")
PlaySoundAtEntity("creak", "joint_door_move_special.snt", "Cabinet", 1, false);
}

void RotateArea(string %in asTimer
{
if (GetLocalVarInt ("Check") == 0)
{
if (alState == 1)
{
SetMoveObjectState("Cabinet", 1);

SetLocalVarInt("Check", 1);

return;
}
}
)

void StopSound(string &in asTimer)
{
StopSound("creak", 0.4);
}
////////////////////////////////////////////////////////////////////////////////////////////

And I was thinking to try "prop Force" to but just wanted to hear if it was possible[/size][/font]
02-26-2016, 10:16 AM
Find


Messages In This Thread
Make Cabinet Open By It Self - by TheZhadowRider - 02-26-2016, 10:16 AM
RE: Make Cabinet Open By It Self - by Romulator - 02-26-2016, 10:52 AM
RE: Make Cabinet Open By It Self - by Mudbill - 02-26-2016, 03:52 PM



Users browsing this thread: 1 Guest(s)