Author Sticky: Post Working Scripts Here
Mergandevinasander Posted: Thursday, 27 June 10:15PM
Script Name: Teleporting chairs (orwhatever)
Author: Me
What It Does: When PC clicks on a useable object it teleports him to a waypoint and makes an effect, companions will follow but im not sure about other pc's, looking for script to bring whole party. Email me for question (Duke121005@aol.com)
First place an object and make it useable. Give it a tag like "teleportchair". Then make a waypoint at destination with a name like "wp_teleportchair". Then insert this script in the chair (or other objects) onUse event handler

NWScript:
void main ()

{

object oPC= GetLastUsedBy();

object oTarget=GetWaypointByTag("your waypoint name");

effect eTeleport= EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_3);

ApplyEffectToObject(DURATION_TYPE_INSTANT, eTeleport, GetObjectByTag ("the chair or other things tag"));

AssignCommand(oPC, JumpToObject(oTarget));

}