27.12.2013, 15:07
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:
I tried to make this after that, but this is doesn't work:
Thank you.
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(playerid, Pos[0], Pos[1], Pos[2]);
new objectid = CreateDynamicObjectEx(8838, Pos[0], Pos[1], Pos[2]+0.3, 0, 0, 0, 0.0, 300.0, { -1 }, { -1 }, { -1 });
PHP код:
1.
SetDynamicObjectMaterial( objectid, 0, 8838, "blankmodel", "none", 0 );
2.
SetDynamicObjectMaterial( objectid, 18646, 0, "matcolours", "black", 0x00FFFFFF);