02-25-2012, 08:27 PM
02-25-2012, 08:29 PM
TeleportPlayer(" [PlayerStartArea_ name here] ");
02-25-2012, 08:34 PM
Would it be something like AddEntityCollideCallback at the beginning and then in there it would have ("Player", "Teleport" "PlayerCollideArea", true, 1), with void PlayerCollideArea(string &in Parent, string &in Child, int alState) and have the teleportplayer in { }?
02-25-2012, 08:40 PM
void OnStart()
{
AddEntityCollideCallback("Player", "area name here", "Tele", true, 1);
}
void Tele(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer(" [PlayerStartArea_ name here] ");
}
//play around with area names and you should get it working then =)
02-25-2012, 09:17 PM
Ehh one last thing, how would their be delay I have tried putting it like this:
void Tele(string &in asParent, string &in asChild, int alState)
{
AddTimer("T1", 5.0f, "Timer_1");
TeleportPlayer("CameraPos_2");
}
but never would delay the teleport
void Tele(string &in asParent, string &in asChild, int alState)
{
AddTimer("T1", 5.0f, "Timer_1");
TeleportPlayer("CameraPos_2");
}
but never would delay the teleport
02-25-2012, 09:27 PM
void OnStart()
{
AddEntityCollideCallback("Player", "area name here", "Tele", true, 1);
}
void Tele(string &in asParent, string &in asChild, int alState)
{
AddTimer("T1", 5.0f, "Timer_1");
}
void Timer_1(string &in asTimer)
{
TeleportPlayer("CameraPos_2");
}
{
AddEntityCollideCallback("Player", "area name here", "Tele", true, 1);
}
void Tele(string &in asParent, string &in asChild, int alState)
{
AddTimer("T1", 5.0f, "Timer_1");
}
void Timer_1(string &in asTimer)
{
TeleportPlayer("CameraPos_2");
}