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 Hi, its me again ;d
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#10
RE: Hi, its me again ;d

void PlayerScare(string &in asParent, string &in asChild, string &in alState)
{
if(GetSwingDoorClosed(asEntity) == false)
{
SetSwingDoorClosed("AwaysLockedDoor", true, "true");
AddTimer("Lock", float (1.0), "LockDoor");
}
}

Quote:SetSwingDoorClosed(string& asName, bool abClosed, bool abEffects);
has to be like this :
SetSwingDoorClosed("""Name of your door", true or false, true or false);

So choose OR true OR false,like :
PHP Code: (Select All)
SetSwingDoorClosed("""Name of your door"true,false); 

For your script as it is now no need to write bool AND true.
Bool = true or false.

Here is an example from me, try playing with it :
PHP Code: (Select All)
SetSwingDoorLocked("door1"falsefalse);
SetSwingDoorClosed("door1"falsefalse); 
-
PHP Code: (Select All)
void Bathroomdoor(string &in asEntity)
{
    if(
GetSwingDoorLocked(asEntity) == true)

//DO SOMETHING HERE/ Put your script here. Only when touching the door and have (Bathroomdoor) set in your leveleditor as PlayerInteractCallBack.


(This post was last modified: 06-20-2015, 02:10 PM by DnALANGE.)
06-20-2015, 02:02 PM
Find


Messages In This Thread
Hi, its me again ;d - by NotASkrub - 06-19-2015, 01:52 AM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-19-2015, 02:12 AM
RE: Hi, its me again ;d - by NotASkrub - 06-19-2015, 02:24 AM
RE: Hi, its me again ;d - by Romulator - 06-19-2015, 02:46 AM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-19-2015, 02:52 AM
RE: Hi, its me again ;d - by NotASkrub - 06-19-2015, 02:58 AM
RE: Hi, its me again ;d - by Mudbill - 06-19-2015, 08:03 AM
RE: Hi, its me again ;d - by NotASkrub - 06-19-2015, 09:45 AM
RE: Hi, its me again ;d - by NotASkrub - 06-20-2015, 01:00 PM
RE: Hi, its me again ;d - by DnALANGE - 06-20-2015, 02:02 PM
RE: Hi, its me again ;d - by NotASkrub - 06-20-2015, 02:56 PM
RE: Hi, its me again ;d - by Mudbill - 06-20-2015, 02:10 PM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-20-2015, 05:01 PM
RE: Hi, its me again ;d - by NotASkrub - 06-20-2015, 06:08 PM
RE: Hi, its me again ;d - by NotASkrub - 06-20-2015, 10:11 PM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-21-2015, 01:28 AM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 11:16 AM
RE: Hi, its me again ;d - by Romulator - 06-21-2015, 12:16 PM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 01:28 PM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-21-2015, 01:30 PM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 02:14 PM
RE: Hi, its me again ;d - by DnALANGE - 06-21-2015, 05:14 PM
RE: Hi, its me again ;d - by Mudbill - 06-21-2015, 05:22 PM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 06:55 PM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-21-2015, 07:21 PM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 08:35 PM
RE: Hi, its me again ;d - by Catalyst - 06-21-2015, 08:53 PM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 10:59 PM



Users browsing this thread: 1 Guest(s)