SetPicture Objects Display 5.1 OC void int x X position of the top left corner of the new graphics rectangle. int y Y position of the top left corner of the new graphics rectangle. int width Width of the new graphics rectangle. int height Height of the new graphics rectangle. Changes the representative picture of the object by setting it to a new source rectangle within the definition graphics. This picture is used e.g. in menus or the inventory. Also see the Picture entry in DefCore.txt. global func SetObjectPicture(idSrcDef, obj) { obj->SetPicture(GetDefCoreVal("Picture", "DefCore", idSrcDef, 0), GetDefCoreVal("Picture", "DefCore", idSrcDef, 1), GetDefCoreVal("Picture", "DefCore", idSrcDef, 2), GetDefCoreVal("Picture", "DefCore", idSrcDef, 3)); obj->SetGraphics(0, idSrcDef); return 1; } Global function: changes the picture of obj to that of another object (Warning: this may make the game graphics or SolidMasks of the object invalid). SetGraphics Sven22003-06