En:Exit point

Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.

Exit point is area on level location which looks as relative tile. Each exit point attaches to unique index. By this index the system checks: what location is necessary to load at present?
If the hero finishes the movement over this area then the game engine tries to call the predetermined function Resource\maps\<location_name>\map_events.pfs->OnMapExit and to transfer there an index of exit point. By this index the system checks: what location is necessary to load or is necessary to exit to global worldmap?
Exit point can be set by means of method MapBuilder.AddExitPoint.

Example

function OnMapExit(exitarea_idx) 
    if exitarea_idx==1 then
        return "arbridge";
    endif
    return ""
endfunction
Личные инструменты