• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

how to teleport from one map to another map

Status
Not open for further replies.
Level 11
Joined
Jan 23, 2015
Messages
788
To open the map through another, there is an action 'Game - Load Map' or something. If you want to teleport to a place you want, I think it isn't possible to transfer info from one map to another, but I'm not sure, maybe there is a way.
 

TKF

TKF

Level 19
Joined
Nov 29, 2006
Messages
1,266
I just thought that is it possible to teleport from one map to another,if so how is it done. Thanks in advance.
Well you didn't specify, do you mean inside the same map, like limiting the camera area inside the same map? Since you mention teleport?

  • Camera - Set the camera bounds for (Owner of (Triggering unit)) to Area1 Camera Bounds <gen>
And move the unit to that area?

  • Set Temp_Point = (Center of (EntryPointRegion))
  • Unit - Move (Triggering unit) instantly to Temp_Point
  • Custom script: call RemoveLocation(udg_Temp_Point)
But if you talking about transferring from a map to a different map, that is only possible in single player campaigns, not multiplayer maps. In that case its much more complex and need a load/save code script.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
Do note that the Rexar campaign (Orc Expansion) did it by in-built save/load of map sessions and then transferring player state from a gamecache. This meant that when you came back to an area you already visited it was the same session as when you first entered the area but with your hero progress carrying back to it. Due to the bugs present in the in-built save/load this might not be a viable thing to do.

An alternative solution is to store more state information inside the game cache on the state of a map session and then use that state information to re-construct the map state on a new session. Short-cuts can be made such as ignoring the current spawn state of units which respawn and possibly forgetting the health of all units present (assume they are fully healed).
 
Status
Not open for further replies.
Top