Difference between revisions of "TMap.OnAfterMapChange"

From Soldat Community Wiki
Jump to: navigation, search
(new page)
(No difference)

Revision as of 19:58, 25 August 2013

property OnAfterMapChange
 Access mode: RW
 Event handler type: TOnAfterMapChangeEvent
 Event handler declaration: procedure (Next: string);

Description

Event property called after the map is loaded, which means all Objects and Spawns are already there for the Next map.

Needs testing (in-depth)

Example

 procedure OnAfter(Next: string);
 begin
   WriteLn('Map loaded: '+Next);
 end;

 // ...

 begin
   // assign OnJoin handler
   Map.OnAfterMapChange := @OnAfter;

   // ...

   // unassign
   Map.OnAfterMapChange := nil;
 end;