// delayed_port_oc
//Goes in the OnClick Event of a Area Transition Trigger (Requires Waypoint!)
//Settings
const string sMsg = "Enter Msg Here";
const string sDestination = "Enter Tagname of Waypoint Here";
const float fDelay = 3.0; //Seconds Till Telelported to Waypoint
//Do Not Edit Anything Below
void main()
{
object oPC = GetClickingObject();
float fFloat = fDelay;
//FALSE = Don't show to other PCs in Party
FloatingTextStringOnCreature(sMsg, oPC, FALSE);
object oWay = GetWaypointByTag(sDestination);
DelayCommand(fFloat, AssignCommand(oPC, ClearAllActions()));
fFloat += 0.1;
DelayCommand(fFloat, AssignCommand(oPC, ActionJumpToObject(oWay)));
}
Modifié par _Guile, 18 avril 2011 - 02:35 .