<?php
public function AddObject($x, $y, $z, $heading, $object, $flag)
{
$object = new LayoutObject($x, $y, $z, LayoutObject::$OBJ_REAL_OBJECT, (180 + $heading/32768 * 180), LayoutObject::$$object, $flag);
IS_AXM()->PMOAction(PMO_ADD_OBJECTS)->Info(array($object))->send();
}
?>
AddObject($x, $y, $z, $heading, $object, $flag)
Useage:
<?php
$this->AddObject(-280.38, 987.25, 18.75, -15.5, "AXO_CONCRETE_WALL", 0);
?>