Mapdev:set.lua: Difference between revisions
From Spring
Jump to navigationJump to search
created page |
mNo edit summary |
||
| Line 9: | Line 9: | ||
==Source== | ==Source== | ||
The engine source code which reads this file from the map is viewable here: ??? | The engine source code which reads this file from the map is viewable here: ??? | ||
= File Location = | |||
./mapconfig/featureplacer/set.lua | |||
= General Formatting = | = General Formatting = | ||
Revision as of 08:16, 20 December 2012
set.lua Reference
Download the map blueprint
variables are organised as such: type VariableName default: value range: [valid range] Required
- Description
If you notice something is incorrect, fix it please!
Source
The engine source code which reads this file from the map is viewable here: ???
File Location
./mapconfig/featureplacer/set.lua
General Formatting
check Lua Documentation.
Data Types
- int
- An integer number. eg. 5
- string
- Text, or more precisely a string of alphanumeric characters. eg "string of characters"
Sections
setcfg
----------------------------------------------------------
-- AutoCreated by FeaturePlacer (by smoth)
local setcfg = {
unitlist = {
...
{ name = 'name', x = 0 , z = 0 , rot = "0"},
...
},
buildinglist = {
...
{ name = 'name', x = 0 , z = 0 , rot = "0"},
...
},
objectlist = {
...
{ name = 'name', x = 0 , z = 0 , rot = "0"},
...
},
}
return setcfg
string name default: ?
- name of the unit, feature, or building owned by the gaia team
integer x default: ?
- x position on the map
integer z default: ?
- z position on the map
string rot default: ?
- a number which specifies the rotation of the object