I am able to make the smoke:
Code:
new String:gas_name[128];
Format(gas_name, sizeof(gas_name), "SpawnGas%i", client);
new String:originData[64];
Format(originData, sizeof(originData), "%f %f %f", VectorPos[0], VectorPos[1], VectorPos[2]);
new String:colorData[64];
Format(colorData, sizeof(colorData), "%i %i %i", 220, 100, 110);
new gascloud = CreateEntityByName("env_smokestack");
DispatchKeyValue(gascloud,"targetname", gas_name);
DispatchKeyValueVector(gascloud,"Origin", VectorPos);
DispatchKeyValueFloat(gascloud,"BaseSpread", 15.0);
DispatchKeyValue(gascloud,"SpreadSpeed", "100");
DispatchKeyValue(gascloud,"Speed", "50");
DispatchKeyValueFloat(gascloud,"StartSize", 15.0);
DispatchKeyValueFloat(gascloud,"EndSize", 25.0);
DispatchKeyValue(gascloud,"Rate", "200");
DispatchKeyValue(gascloud,"JetLength", "500");
DispatchKeyValueFloat(gascloud,"Twist", 5.0);
DispatchKeyValue(gascloud,"RenderColor", colorData);
DispatchKeyValue(gascloud,"RenderAmt", "100");
DispatchKeyValue(gascloud,"SmokeMaterial", "particle/fire.vmt");
DispatchSpawn(gascloud);
TeleportEntity(gascloud, VectorPos, NULL_VECTOR, NULL_VECTOR);
AcceptEntityInput(gascloud, "TurnOn");
Format(gas_name, sizeof(gas_name), "SpawnGas%i", client);
new String:originData[64];
Format(originData, sizeof(originData), "%f %f %f", VectorPos[0], VectorPos[1], VectorPos[2]);
new String:colorData[64];
Format(colorData, sizeof(colorData), "%i %i %i", 220, 100, 110);
new gascloud = CreateEntityByName("env_smokestack");
DispatchKeyValue(gascloud,"targetname", gas_name);
DispatchKeyValueVector(gascloud,"Origin", VectorPos);
DispatchKeyValueFloat(gascloud,"BaseSpread", 15.0);
DispatchKeyValue(gascloud,"SpreadSpeed", "100");
DispatchKeyValue(gascloud,"Speed", "50");
DispatchKeyValueFloat(gascloud,"StartSize", 15.0);
DispatchKeyValueFloat(gascloud,"EndSize", 25.0);
DispatchKeyValue(gascloud,"Rate", "200");
DispatchKeyValue(gascloud,"JetLength", "500");
DispatchKeyValueFloat(gascloud,"Twist", 5.0);
DispatchKeyValue(gascloud,"RenderColor", colorData);
DispatchKeyValue(gascloud,"RenderAmt", "100");
DispatchKeyValue(gascloud,"SmokeMaterial", "particle/fire.vmt");
DispatchSpawn(gascloud);
TeleportEntity(gascloud, VectorPos, NULL_VECTOR, NULL_VECTOR);
AcceptEntityInput(gascloud, "TurnOn");
However when it comes to parenting the smoke or making it go a different direction I am lost. Here is the valve page for the entity: https://developer.valvesoftware.com/wiki/Env_smokestack
Can I get some help plez?






Logged

