supportInfo – Talk

From Bohemia Interactive Community
Revision as of 10:42, 26 November 2007 by Ceeeb (talk | contribs)
Jump to navigation Jump to search

Locations

Here are some interesting new commands (in 1.08 hotfix) found using the supportInfo command. Locations are the markings on the game map for things like town names, peak heights of hills, forest type icons, rocky areas etc. This info is just my findings, nothing official or thoroughly tested:

Can be used to change the type of location. Types are defined in CfgLocationTypes. Eg: "RockArea","VegetationVineyard".
Same as object setVariable.
Attach location to an object, it's location will automatically update on the map. The objects orientation doesn't affect the location's orientation. Attach to objNull to detach from an object.
Importance probably controls which location shall be drawn on the map in case of overlap. Values defined in CfgLocationTypes in the config range from 1 (not-important) to 7 (important).
not tested
similar to setVehicleVarName. The use of these commands is beyond me.
same as getVariable
  • b:ARRAY in LOCATION
check if position is within location's area. Area is based on it's attached position. A non-trigger spatial test!
set the location's area size, [x,y]. Map visual representation of location does not change.
set's the triggers text. Used for text based location types.
equivalent to setMarkerDir. Rotates the location area. Map visual representation of location does not rotate.
similar to setPos. Locations seem to have a 3D position.
presumably locations are ellipses if they are not rectangular. No effect on map visuals.
No idea what impact this has. MP testing required?
return nearest locations to a position array. Syntax is nearestLocations [positionArray,[locationType,locationType2,...],searchRadius]
return location's shape
returns location's type.
return location's actual location, works with attached object.
return location's name.
return the object a location is attached to.
return location's size array [x,y]
return location's text.
return location's direction. This does not change with the direction of an attached object.
create a new location. returns the location. syntax is _myLocation = createLocation [locationType,positionArray,sizeX,sizeY]
delete a location.
return location's side
return the nearest location to a given position array of a given type. syntax = nearestLocation [positionArray,locationType]
return location's importance value.
return location's position. If location is attached to an object, the returned value is the location's position if it were not attached to an object.

I've created new pages for these commands, please add to and correct them if you can--Ceeeb 11:07, 23 November 2007 (CET)