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", 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 Sad i did what yo usaid but...
06-27-2014, 01:46 PM
Find


Messages In This Thread
area for teleport.. - by Amnesiaplayer - 06-27-2014, 11:29 AM
RE: area for teleport.. - by DnALANGE - 06-27-2014, 11:56 AM
RE: area for teleport.. - by Amnesiaplayer - 06-27-2014, 12:08 PM
RE: area for teleport.. - by DnALANGE - 06-27-2014, 12:12 PM
RE: area for teleport.. - by Amnesiaplayer - 06-27-2014, 12:18 PM
RE: area for teleport.. - by Mudbill - 06-27-2014, 12:22 PM
RE: area for teleport.. - by Amnesiaplayer - 06-27-2014, 12:25 PM
RE: area for teleport.. - by DnALANGE - 06-27-2014, 12:41 PM
RE: area for teleport.. - by Amnesiaplayer - 06-27-2014, 12:43 PM
RE: area for teleport.. - by DnALANGE - 06-27-2014, 12:44 PM
RE: area for teleport.. - by Amnesiaplayer - 06-27-2014, 01:46 PM
RE: area for teleport.. - by DnALANGE - 06-27-2014, 01:59 PM
RE: area for teleport.. - by Amnesiaplayer - 06-27-2014, 02:01 PM
RE: area for teleport.. - by Neelke - 06-27-2014, 02:08 PM
RE: area for teleport.. - by Amnesiaplayer - 06-27-2014, 02:10 PM
RE: area for teleport.. - by Neelke - 06-27-2014, 02:13 PM
RE: area for teleport.. - by Amnesiaplayer - 06-27-2014, 02:16 PM
RE: area for teleport.. - by Neelke - 06-27-2014, 02:19 PM
RE: area for teleport.. - by Amnesiaplayer - 06-27-2014, 02:22 PM



Users browsing this thread: 1 Guest(s)