void main() { object oAltar = GetObjectByTag("Altar"); location lAltar = GetLocation(oAltar); if (!GetIsObjectValid(oAltar)) CreateObject(OBJECT_TYPE_PLACEABLE,"plc_solorange",lAltar); }