User Tools

Site Tools


scripting:reference:system_functions:worldmapfunctions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripting:reference:system_functions:worldmapfunctions [2020/02/07 17:13] – [sysActivateBuildingProximityEvent] mitscripting:reference:system_functions:worldmapfunctions [2020/02/07 19:00] (current) – [sysNumPlayersInScriptZone] mit
Line 86: Line 86:
  
 ==== sysActivateBuildingProximityEvent ====  ==== sysActivateBuildingProximityEvent ==== 
-''**ServerPlayerActivateBuildingProximityEvent( buildingID, range )**'' - Activates a proximity trigger for the current player on the specified buildingID.  +''**sysActivateBuildingProximityEvent( buildingID, range )**'' - Activates a proximity trigger for the current player on the specified buildingID. \\ 
-Used to trigger 4 different events: +Used to trigger 4 different events:\\ 
-Event( "BuildingIDProxEnter", "BuildingID" and if that doesnt exist.. +Event( "BuildingIDProxEnter", "BuildingID" and if that doesnt exist..\\ 
-Event( "BuildingProxEnter", ""+Event( "BuildingProxEnter", "")\\ 
-and the reverse.. +and the reverse..\\ 
-Event( "BuildingIDProxLeave", "BuildingID" and if that doesnt  exist.. +Event( "BuildingIDProxLeave", "BuildingID" and if that doesnt  exist..\\ 
-Event( "BuildingProxLeave", "")+Event( "BuildingProxLeave", "")\\
  
-==== sysActivateLocalProximityEvent ====  
-==== sysActivateRangeEvent ====  
 ==== sysDeactivateBuildingProximityEvent ====  ==== sysDeactivateBuildingProximityEvent ==== 
-==== sysDeactivateLocalProximityEvent ==== +''**sysDeactivateBuildingProximityEvent( buildingID )**'' 
 + 
 +==== sysActivateRangeEvent ====  
 +''**sysActivateRangeEvent( eventID, worldX, worldY, range )**'' - Activates a proximity trigger for the current player using a world coordinate. Atm, eventID is not used, only one range event can be active for the player at any one time. 
 +mm, atm seems to only triggers the event "RangeLeave" when a player leaves the range. curious. 
 ==== sysDeactivateRangeEvent ====  ==== sysDeactivateRangeEvent ==== 
  
 ==== sysIsInScriptZone ==== ==== sysIsInScriptZone ====
 +
 +''**sysIsInScriptZone( MapX, MapY, ZoneIDNum )**'' used to query if the specified map coord is within the specified 'ScriptZone'. Script zones are added via the F10 world editor.
 +
 ==== sysNumPlayersInBuildZone ====  ==== sysNumPlayersInBuildZone ==== 
 ==== sysNumPlayersInRCMode ====  ==== sysNumPlayersInRCMode ==== 
 ==== sysNumPlayersInScriptZone ====  ==== sysNumPlayersInScriptZone ==== 
 +''**sysNumPlayersInScriptZone( ScriptZoneIDNum )**'' returns the number of players currently within the specified ScriptZone.
 +
 +\\
 +
 +
 +Not yet functional:
 +=== sysActivateLocalProximityEvent ===
 +=== sysDeactivateLocalProximityEvent ===
  
scripting/reference/system_functions/worldmapfunctions.1581117211.txt.gz · Last modified: 2020/02/07 17:13 by mit

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki