[Help] Invisible object and touchable.
#1

Hello.

I want to create object that will be invisible but touchable.
I want - when I'll go to this object, I can touch him but I cant see him.

But that's not working, I can see the object.

Code:

PHP код:
new Float:Pos[3];
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
new 
objectid CreateDynamicObjectEx(8838Pos[0], Pos[1], Pos[2]+0.30000.0300.0, { -}, { -}, { -}); 
I tried to make this after that, but this is doesn't work:

PHP код:
1.
SetDynamicObjectMaterial
objectid08838"blankmodel""none");
2.
SetDynamicObjectMaterial
objectid186460"matcolours""black"0x00FFFFFF); 
Thank you.
Reply
#2

UP. Please?
Reply
#3

Hey, someone?
Reply
#4

/wave, anyone?
Reply
#5

Help please? that is hard to solve that? but I'm sure that there is way for that.
Anyway, please someone help...
Reply
#6

here you go mate,
a example cmd
PHP код:
YCMD:test(playeridparams[], help)
{
    new 
Float:Pos[3],obid;
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
    
obid CreateDynamicObject(8838Pos[0], Pos[1], Pos[2]+0.30.00.00.0);
    
SetDynamicObjectMaterial(obid,0,-1,"none","none",0x000000FF);
    
SetDynamicObjectMaterial(obid,1,-1,"none","none",0x000000FF);
    
SetDynamicObjectMaterial(obid,2,-1,"none","none",0x000000FF);
    
SetDynamicObjectMaterial(obid,3,-1,"none","none",0x000000FF);
    
SetDynamicObjectMaterial(obid,4,-1,"none","none",0x000000FF);
    return 
1;

it's now invisible, like u wanted it 2 be

Happy new year btw !!!!!!
Reply
#7

!! Thank you dude, you are realy helped me. I'm bad on SetObjectMaterial, I didnt use that till yet, but its usefull function. Thanks again and happy new year!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)