Amnesiaplayer
Senior Member
Posts: 539
Threads: 105
Joined: Jun 2014
Reputation:
0
|
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
void OnLeave() { FadeIn(1); }
void OnStart() { AddUseItemCallback("", "sleutel1", "deur1", "UsedKeyOnDoor", true); AddEntityCollideCallback("Player", "BreakingArea", "BoardCreak", true, 1); AddEntityCollideCallback("Player", "Hittheground", "Teleport", true, 1); }
void UsedKeyOnDoor (string &in asItem, string &in asEntity) { SetSwingDoorLocked("deur1", false, true); PlaySoundAtEntity("", "unlock_door.snt", "deur1", 0, false); RemoveItem("sleutel1"); }
void BoardCreak(string&in asParent, string &in asChild, int alState) { PlaySoundAtEntity("WoodCreaking", "CREAKINGNOISE.snt", "BreakingArea", 0.5f, false); AddTimer("ImFaaaalling", 0.60f, "StartFalling"); }
void StartFalling(string &in asTimer) { SetPropHealth("Board", 0); FadeOut(3); }
void Teleport(string &in asParent, string &in asChild, int alState) { ChangeMap("dream.map", "PlayerStartArea_dream" , "", ""); }
but it doesn't stop with the Black screen i did what yo usaid but...
|
|
06-27-2014, 01:46 PM |
|
DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
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 //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 |
|
Amnesiaplayer
Senior Member
Posts: 539
Threads: 105
Joined: Jun 2014
Reputation:
0
|
RE: area for teleport..
sorrybut i don't understand... it's still pitchblack
|
|
06-27-2014, 02:01 PM |
|
Neelke
Senior Member
Posts: 668
Threads: 82
Joined: Apr 2013
Reputation:
26
|
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 |
|
Amnesiaplayer
Senior Member
Posts: 539
Threads: 105
Joined: Jun 2014
Reputation:
0
|
RE: area for teleport..
...i don't understand...
|
|
06-27-2014, 02:10 PM |
|
Neelke
Senior Member
Posts: 668
Threads: 82
Joined: Apr 2013
Reputation:
26
|
RE: area for teleport..
Put that on the void OnStart when you enter the next level.
Derp.
|
|
06-27-2014, 02:13 PM |
|
Amnesiaplayer
Senior Member
Posts: 539
Threads: 105
Joined: Jun 2014
Reputation:
0
|
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 |
|
Neelke
Senior Member
Posts: 668
Threads: 82
Joined: Apr 2013
Reputation:
26
|
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 |
|
Amnesiaplayer
Senior Member
Posts: 539
Threads: 105
Joined: Jun 2014
Reputation:
0
|
RE: area for teleport..
It worked...
i removed the Hittheground and typed (Teleport) now it works
now i'm gonna put the Fade back! thankyou... all
|
|
06-27-2014, 02:22 PM |
|
|