The teleportNear native AI script function teleports a player to a specific location and sends the notification user events to the specified NPC group.
TODO: This function causes one or more undocumented user event IDs to be triggered on the NPC group that is to be notified. The list of notifications needs to be documented here.
TODO: This document is autogenerated and has not yet been reviewed.
()teleportNear(x: f, y: f, z: f, groupToNotify: c)
(@groupToNotify)group_name.context();
teleportNear(100.0f, 200.0f, 300.0f, @groupToNotify);
This example code teleports the player to the location (100.0f, 200.0f, 300.0f)
and sends a notification to the group_name
group.