Code: Select all
EVENT("OSDSELECT","BuildOSD:005")
{
*buildingconstruct %PLAYER% 5 Wall
}
EVENT("PlaceBuilding","5")
{
$didAdd = sysAddBuilding(5,$gPlayerID,$gPlayerX,$gPlayerY,Wall,0,0 )
}
Code: Select all
EVENT("OSDSELECT","BuildOSD:005")
{
*buildingconstruct %PLAYER% 5 Wall
}
EVENT("PlaceBuilding","5")
{
$didAdd = sysAddBuilding(5,$gPlayerID,$gPlayerX,$gPlayerY,Wall,0,0 )
}
Code: Select all
$tileCenterX = sysGetTileCenter( $gPlayerWorldX )
$tileCenterY = sysGetTileCenter( $gPlayerWorldY )
$ret = $sysAddBuildingWorld( 5, $gPlayerID, $tileCenterX, $tileCenterY,Wall,0,0 )