Making object invisible but can touch him[Streamer] -
Strain - 14.10.2013
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(8838, 134.8850,-97.2466,2.4297, 0.0, 300.0, { 0 }, { 0 }, { -1 });
Streamer_RemoveArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_INTERIOR_ID, 0 );
Streamer_AppendArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_INTERIOR_ID, 1 );
Streamer thread
Thanks for helping
Re: Making object invisible but can touch him[Streamer] - Emmet_ - 14.10.2013
pawn Код:
SetDynamicObjectMaterial( objectid, 0, 8838, "blankmodel", "none", 0 );
Would that work?
Re: Making object invisible but can touch him[Streamer] -
Strain - 14.10.2013
I can still see the object...
Re: Making object invisible but can touch him[Streamer] -
Chenko - 14.10.2013
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);
Re: Making object invisible but can touch him[Streamer] -
Pottus - 14.10.2013
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.
Re: Making object invisible but can touch him[Streamer] -
Strain - 15.10.2013
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;
}
Re: Making object invisible but can touch him[Streamer] -
Strain - 16.10.2013
Help? Nobody know how to do that?
Re: Making object invisible but can touch him[Streamer] -
Strain - 18.10.2013
UP, please?
Re: Making object invisible but can touch him[Streamer] -
Strain - 20.10.2013
How alot people dont know how to do it?
Re: Making object invisible but can touch him[Streamer] -
Konstantinos - 20.10.2013
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.