About Store Forum Documentation Contact



Post Reply 
how to draw object
Author Message
zarmen98 Offline
Member

Post: #1
how to draw object
Code:
Object op;
         op.base (UID(3642854163, 1242104285, 284714929, 4035924082));
         op.type (true, ObjType.getID("OBJ_3DOBJECTS"));
         op.align(true, ALIGN_NONE, ALIGN_NONE, ALIGN_NONE);
         Game.Obj *obj=Game.World.objCreateNear(op, Matrix(1, ChrData.pos()+Vec(0, 1, 0) ));
        
         if(obj)
            obj->drawSolid();

i wanna draw a object on player's upper.
i tried this code but its not drawing the object what can i do for this?
06-07-2019 08:07 PM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #2
RE: how to draw object
Are you calling draw in appropriate draw function and state loop?
06-07-2019 10:18 PM
Find all posts by this user Quote this message in a reply
zarmen98 Offline
Member

Post: #3
RE: how to draw object
yes
obj->drawSolid();
06-09-2019 04:58 PM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #4
RE: how to draw object
yes but where do you call this ? you cant just decide to draw stuff anywhere smile
06-09-2019 06:29 PM
Find all posts by this user Quote this message in a reply
zarmen98 Offline
Member

Post: #5
RE: how to draw object
its calling in EsenthelMMO's player script in update function im sure its calling. When im clicking other players my fps is going down its trying to draw but its not drawing
06-09-2019 07:26 PM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #6
RE: how to draw object
Well tbh to draw item on your character there is a tutorial on how to do this properly (armor one )
Because with this you wont have it linked to your char (thru bones) so its just gonna be a static piece
Make sure when you need help to show your entire code related to the item as not everyone has access to the mmo code so we can help you out smile
(This post was last modified: 06-10-2019 02:17 AM by RedcrowProd.)
06-10-2019 01:34 AM
Find all posts by this user Quote this message in a reply
Post Reply