Quantcast
Channel: World of Players
Viewing all articles
Browse latest Browse all 41863

G1 - mobsi get visual function

$
0
0
Hello folks, I am struggling with figuring this one out - and I hope that someone can help me here. How can I get a visual information from ocMobInter object? For example this anvil below - what I am looking for is a function, which would give me back visual name: BSANVIL_OC.MDS Bild: https://i.ibb.co/zHYNQNL/GM-Mobsi-visual.png I've tried function below - this works with zcVob, but seems like it is returning only empty string for this ocMobInter: (ptr is pointer of anvil) Code: --------- var zCVob vob; vob = _^ (ptr); if (vob.visual) { var zCObject visualObj; visualObj = _^(vob.visual); PrintScreen_Ext (visualObj.objectname, -1, _YPOS_MESSAGE_XPGAINED, "font_old_10_white.tga", _TIME_MESSAGE_XPGAINED); } else { PrintScreen_Ext ("!vob.visual", -1, _YPOS_MESSAGE_XPGAINED, "font_old_10_white.tga", _TIME_MESSAGE_XPGAINED); }; ---------

Viewing all articles
Browse latest Browse all 41863