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
area for teleport..
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#11
RE: area for teleport..

yes the area thing is

x:10,25
y:60
z:11,5

i thougt he must be IN the area Dx
and yes he is TOUCHING the area and my script looks like this for now


PHP Code: (Select All)
void OnLeave()
{
 
FadeIn(1);
}

void OnStart()
{
AddUseItemCallback("""sleutel1""deur1""UsedKeyOnDoor"true);
AddEntityCollideCallback("Player""BreakingArea""BoardCreak"true1);
AddEntityCollideCallback("Player""Hittheground""Teleport"true1); 
}

void UsedKeyOnDoor (string &in asItemstring &in asEntity)
{
SetSwingDoorLocked("deur1"falsetrue); 
PlaySoundAtEntity("""unlock_door.snt""deur1"0false);
RemoveItem("sleutel1");


void BoardCreak(string&in asParentstring &in asChildint alState)
{
PlaySoundAtEntity("WoodCreaking""CREAKINGNOISE.snt""BreakingArea"0.5ffalse);
AddTimer("ImFaaaalling"0.60f"StartFalling");
}

void StartFalling(string &in asTimer)
{
SetPropHealth("Board"0);
FadeOut(3);


void Teleport(string &in asParentstring &in asChildint alState)
{
ChangeMap("dream.map""PlayerStartArea_dream" """");


but it doesn't stop with the Black screen Sad i did what yo usaid but...
06-27-2014, 01:46 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#12
RE: area for teleport..

Try this :

void BoardCreak(string&in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("WoodCreaking", "CREAKINGNOISE.snt", "BreakingArea", 0.5f, false);
AddTimer("ImFaaaalling", 1, "StartFalling");
}

void StartFalling(string &in asTimer)
{
SetPropHealth("Board", 0);
FadeOut(3);
AddTimer("", 3, "Teleport");
}

void Teleport(string &in asTimer)
{
ChangeMap("dream.map", "PlayerStartArea_dream" , "", "");
}

Remove this line or easely do
PHP Code: (Select All)
//AddEntityCollideCallback("Player", "Hittheground", "Teleport", true, 1); 
(This post was last modified: 06-27-2014, 01:59 PM by DnALANGE.)
06-27-2014, 01:59 PM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#13
RE: area for teleport..

sorrybut i don't understand... it's still pitchblack Sad
06-27-2014, 02:01 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#14
RE: area for teleport..

Then you use FadeIn(3);

Call that when you enter the next level.

Derp.
(This post was last modified: 06-27-2014, 02:09 PM by Neelke.)
06-27-2014, 02:08 PM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#15
RE: area for teleport..

...i don't understand...
06-27-2014, 02:10 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#16
RE: area for teleport..

Put that on the void OnStart when you enter the next level.

Derp.
06-27-2014, 02:13 PM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#17
RE: area for teleport..

i Can't Enter the next level.. i disabled the fade for test but my (Daniel) doesn't Teleport!
06-27-2014, 02:16 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#18
RE: area for teleport..

Why don't you use the script DnaLANGE sent you? This here:

void BoardCreak(string&in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("WoodCreaking", "CREAKINGNOISE.snt", "BreakingArea", 0.5f, false);
AddTimer("ImFaaaalling", 1, "StartFalling");
}

void StartFalling(string &in asTimer)
{
SetPropHealth("Board", 0);
FadeOut(3);
AddTimer("", 3, "Teleport");
}

void Teleport(string &in asTimer)
{
ChangeMap("dream.map", "PlayerStartArea_dream" , "", "");
}

Derp.
06-27-2014, 02:19 PM
Find
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#19
RE: area for teleport..

It worked...

i removed the Hittheground and typed (Teleport) now it works Big Grin
now i'm gonna put the Fade back! thankyou... all
06-27-2014, 02:22 PM
Find




Users browsing this thread: 3 Guest(s)