Difference between revisions of "Osiris/API/RegisterWaypoint"
From Divinity Engine Wiki
(Documented RegisterWaypoint) |
m |
||
Line 12: | Line 12: | ||
* Helper [[Osiris/Shared/DB_WaypointInfo|DB_WaypointInfo]] | * Helper [[Osiris/Shared/DB_WaypointInfo|DB_WaypointInfo]] | ||
− | [[Category:Osiris Calls]] | + | [[Category:Osiris Calls|RegisterWaypoint]] |
Latest revision as of 16:25, 19 December 2017
Full Definition(s)
- call RegisterWaypoint((STRING)_WaypointName, (ITEMGUID)_Item)
Description
Registers a new waypoint with the game engine. The name of the waypoint in the waypoint list is given by the translated string whose key is _WaypointName, and the object that represents the shrine in the game world is _Item. The location of _Item is where the whirlwind-style icon appears on the (mini-)map.
Notes
- _Item must be global, otherwise this call will not do anything. The reason is the engine supports going to a waypoint in another level, and only global objects can be referenced while in another level.
- Registering a waypoint by itself does not unlock it for anyone.
- You can use the shared mod helper DB_WaypointInfo to register waypoints and to support easily locking/unlocking them per party.