En:OnWorldMapToLevelMap
Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.
Содержание |
[править]
Syntax
function OnWorldMapToLevelMap(level_location_name : String) : String
[править]
Description
Called before hero will go from current worldmap to level location.
[править]
Parameters
- level_location_name - string. Level location name
[править]
Result
The function returns level location name (folder name in catalog with name maps\) which is necessary to load. Current function can return null string, if hero stays on worldmap. Data type - String
[править]
Example
function OnWorldMapToLevelMap(levelMapName) // x, y - global hero location var x = m_WorldMap.GetWorldHeroX(); var y = m_WorldMap.GetWorldHeroY(); if m_WorldMap.GetCityNameByCoords(x, y) == "" then return "desert"; endif if m_WorldMap.GetCityNameByCoords(x, y) == "big" then return "default"; endif return ""; endfunction
[править]