Making object invisible but can touch him[Streamer]
#1

Hello
There is a way to make object invisible but that everyone can touch him/crash him with the streamer
anybody know what is the way to do it?
I tried to use AppendArrayData with changing the interior, its invisible but I can fall through him
PHP код:
new objectid CreateDynamicObjectEx(8838134.8850,-97.2466,2.42970.0300.0, { }, { }, { -});
Streamer_RemoveArrayData(STREAMER_TYPE_OBJECTobjectidE_STREAMER_INTERIOR_ID);
Streamer_AppendArrayData(STREAMER_TYPE_OBJECTobjectidE_STREAMER_INTERIOR_ID); 
Streamer thread
Thanks for helping
Reply
#2

pawn Код:
SetDynamicObjectMaterial( objectid, 0, 8838, "blankmodel", "none", 0 );
Would that work?
Reply
#3

I can still see the object...
Reply
#4

This is what I did when I needed to make an invisible object:

pawn Код:
SetObjectMaterialText(objectid, " ", 0, OBJECT_MATERIAL_SIZE_256x256, "Impact", 24, 1, 0xFF000000, 0, 1);
Reply
#5

You can use SetObjectMaterialText() or

pawn Код:
SetObjectMaterial(objectid, 0, -1, "none", "none", 16711680);
Where 0 = material id you may have to set multiple materials depending on the object.
Reply
#6

I tried all of this ways, but I still can see the object...

The ways that I tried:
pawn Код:
if(!strcmp(cmd, "/set1", true))
    {
        new Float:Pos[3];
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        new objectid = CreateDynamicObject(8838, Pos[0], Pos[1], Pos[2]+5, 0, 0, 0, -1, -1, -1, 200.0);
        SetDynamicObjectMaterial( objectid, 0, 8838, "blankmodel", "none", 0 );
        return 1;
    }
    if(!strcmp(cmd, "/set2", true))
    {
        new Float:Pos[3];
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        new objectid = CreateDynamicObject(8838, Pos[0], Pos[1], Pos[2]+5, 0, 0, 0, -1, -1, -1, 200.0);
        SetDynamicObjectMaterialText(objectid, 0, " ", OBJECT_MATERIAL_SIZE_256x256, "Impact", 24, 1, 0xFF000000, 0, 1);
        return 1;
    }
    if(!strcmp(cmd, "/set3", true))
    {
        new Float:Pos[3];
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        new objectid = CreateDynamicObject(8838, Pos[0], Pos[1], Pos[2]+5, 0, 0, 0, -1, -1, -1, 200.0);
        SetDynamicObjectMaterial(objectid, 0, -1, "none", "none", 16711680);
        return 1;
    }
Reply
#7

Help? Nobody know how to do that?
Reply
#8

UP, please?
Reply
#9

How alot people dont know how to do it?
Reply
#10

I don't know what exactly you want.

You can make an object invisible for a player like that:
pawn Код:
Streamer_RemoveArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_PLAYER_ID, playerid );
But I cannot understand the part about "touch it" and "crash them" whether you want them or they're caused.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)