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
i need some help/ explaination
Headless Offline
Junior Member

Posts: 20
Threads: 3
Joined: Dec 2014
Reputation: 0
#11
RE: i need some help/ explaination

Okay I tested it. door B is locked and it unlocks itself when i interact with door A. However it doesnt swing or make sound yet?

How high should prob force be ?
(This post was last modified: 12-24-2014, 02:59 PM by Headless.)
12-24-2014, 02:58 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#12
RE: i need some help/ explaination

(12-24-2014, 02:58 PM)Headless Wrote: How high should prob force be ?

A bit high. It must be between ~100 (weak) to ~10000 (strong)

"Veni, vidi, vici."
"I came, I saw, I conquered."
12-24-2014, 03:24 PM
Find
Headless Offline
Junior Member

Posts: 20
Threads: 3
Joined: Dec 2014
Reputation: 0
#13
RE: i need some help/ explaination

It doesnt work it refuses to SWING open but i can open it manually
(This post was last modified: 12-24-2014, 05:05 PM by Headless.)
12-24-2014, 04:46 PM
Find
Headless Offline
Junior Member

Posts: 20
Threads: 3
Joined: Dec 2014
Reputation: 0
#14
RE: i need some help/ explaination

It just unlcocks without anything else no sound or slam
12-24-2014, 11:43 PM
Find
L00T3R123 Offline
Junior Member

Posts: 16
Threads: 1
Joined: Dec 2014
Reputation: 0
#15
RE: i need some help/ explaination

shouldnt the door be closed if the door is lock. how would the door slam shut if the door is locked and not opened
12-25-2014, 04:29 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#16
RE: i need some help/ explaination

The door is unlocked. I should probably add a little timer then. One minute.

EDIT:
No wonder. Your force is -1. It isn't enough. Won't even make anything.

Use this one below if the door is on the X axis.
Spoiler below!

PHP Code: (Select All)
void OnStart()
{
    
AddUseItemCallback("Player""DoorLocked""DoorOpenSlamming""DOORopen"true);
    
AddUseItemCallback("""DoorLocked""SlammingSound""DOORopenSOUND"true);
    
AddUseItemCallback("""Key""Door""UseKeyOnDoor"true);
    
SetLocalVarInt("DoorVar"0);
    
SetSwingDoorLocked("Door_A"truetrue);
    
SetSwingDoorLocked("Door_B"truetrue);
    
SetEntityPlayerInteractCallback("Door_A""Slam_Door_B"false);
}

void UseKeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked(asEntityfalsetrue);
    
RemoveItem(asItem);
}

void Slam_Door_B(string &in asEntity)
{
    
AddLocalVarInt("DoorVar"1);
    
DoorCheck();
}

void DoorCheck()
{
    if(
GetLocalVarInt("DoorVar") == 10//Indicates you have to interact with it ten(10) times
    
{
        
AddTimer("Slam"2.75f"Slam");
    }
}

void Slam(string &in asTimer)
{
    
SetSwingDoorLocked("Door_B"falsefalse);
    
AddPropForce("Door_B"500000"World");



Use this one below if the door is on the Z-axis.
Spoiler below!

PHP Code: (Select All)
void OnStart()
{
    
AddUseItemCallback("Player""DoorLocked""DoorOpenSlamming""DOORopen"true);
    
AddUseItemCallback("""DoorLocked""SlammingSound""DOORopenSOUND"true);
    
AddUseItemCallback("""Key""Door""UseKeyOnDoor"true);
    
SetLocalVarInt("DoorVar"0);
    
SetSwingDoorLocked("Door_A"truetrue);
    
SetSwingDoorLocked("Door_B"truetrue);
    
SetEntityPlayerInteractCallback("Door_A""Slam_Door_B"false);
}

void UseKeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked(asEntityfalsetrue);
    
RemoveItem(asItem);
}

void Slam_Door_B(string &in asEntity)
{
    
AddLocalVarInt("DoorVar"1);
    
DoorCheck();
}

void DoorCheck()
{
    if(
GetLocalVarInt("DoorVar") == 10//Indicates you have to interact with it ten(10) times
    
{
        
AddTimer("Slam"2.75f"Slam");
    }
}

void Slam(string &in asTimer)
{
    
SetSwingDoorLocked("Door_B"falsefalse);
    
AddPropForce("Door_B"005000"World");



"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 12-26-2014, 04:12 AM by PutraenusAlivius.)
12-25-2014, 06:38 AM
Find
Headless Offline
Junior Member

Posts: 20
Threads: 3
Joined: Dec 2014
Reputation: 0
#17
RE: i need some help/ explaination

No still not working :/
12-25-2014, 12:26 PM
Find
Headless Offline
Junior Member

Posts: 20
Threads: 3
Joined: Dec 2014
Reputation: 0
#18
RE: i need some help/ explaination

Bleu arrow is Z axis. so did the Z axis script you wrote me but it behaves still the same
12-25-2014, 01:43 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#19
RE: i need some help/ explaination

(12-25-2014, 01:43 PM)Headless Wrote: Bleu arrow is Z axis. so did the Z axis script you wrote me but it behaves still the same

It just unlocks? Weird. Did you name it accordingly? Like change Door_A to the door in your map and stuff?

Spoiler below!

PHP Code: (Select All)
void OnStart()
{
    
AddUseItemCallback("Player""DoorLocked""DoorOpenSlamming""DOORopen"true);
    
AddUseItemCallback("""DoorLocked""SlammingSound""DOORopenSOUND"true);
    
AddUseItemCallback("""Key""Door""UseKeyOnDoor"true);
    
SetLocalVarInt("DoorVar"0);
    
SetSwingDoorLocked("Door_A"truetrue);
    
SetSwingDoorLocked("Door_B"truetrue);
    
SetEntityPlayerInteractCallback("Door_A""Slam_Door_B"false);
}

void UseKeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked(asEntityfalsetrue);
    
RemoveItem(asItem);
}

void Slam_Door_B(string &in asEntity)
{
    
AddLocalVarInt("DoorVar"1);
    
DoorCheck();
}

void DoorCheck()
{
    if(
GetLocalVarInt("DoorVar") == 10//Indicates you have to interact with it ten(10) times
    
{
        
AddTimer("Slam"2.75f"Slam");
    }
}

void Slam(string &in asTimer)
{
    
SetSwingDoorLocked("Door_B"falsetrue);
    
AddTimer("Ad"0.35f"AddForce");


void AddForce(string &in asTimer)
{
    
AddPropForce("Door_B"005000"World");
    
AddPropImpulse("Door_B"006"World");



"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 12-26-2014, 04:15 AM by PutraenusAlivius.)
12-26-2014, 04:12 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#20
RE: i need some help/ explaination

Maybe you need SetSwingDoorClosed(); ?

Also, are you using Swing Doors or Level Doors? Level Doors will not swing open.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
12-26-2014, 05:35 AM
Find




Users browsing this thread: 2 Guest(s)