smoke entitie problem


(jobe314) #1

hi,
i got a fire and its smoke in my map, but the smoke doesn’t escape upwards (like if there is some kind of wind). I put the both 2 entities one on the other, and link them with “targetname: fire target: smoke” and “targetname: smoke target:fire”.

I see something strange when i separate them a little, the smoke escape upwards but not on my fire because smoke entity is not right on the fire.

Can someone know how to solve this plz


(DerSaidin) #2

The smoke shouldn’t target the fire.


(nUllSkillZ) #3

You could position an “info_notnull” (or an “info_null” not sure) above the “target_smoke”.

“info_notnull”:
key: targetname
value: smoketarget

“target_smoke”:
key: target
value: smoketarget


(jobe314) #4

if my smoke doesn’t target the fire (it’s a model in fire and it can be destroy), when my fire desepeare will my smoke desepeare too?


(CptnTriscuit) #5

If your fire entity can be detroyed then having it target your smoke entity should be enough to turn the smoke off (assuming it started ‘on’) when the fire entity dies. - I think.

But I suggest you use your map’s .script to control these events, rather than messing around with an entity chain.


(DerSaidin) #6

The thing a smoke entity targets will be the direction that the smoke goes. Nothing else.


(nUllSkillZ) #7

If the fire gets destroyed you have to call a script sequence that ends the smoke.
Not sure if this is done with setstate invisible or alertentity.
Try to take a look at the goldrush map and script.
The tank and the truck have smoke entities attached.
They smoke if tank / truck are damaged and don’t smoke if tank / truck are OK.


(Loffy) #8

Jobe, check out Erik’s site:
http://user.tninet.se/~fzo823r/
Especially: http://user.tninet.se/~fzo823r/smoke.htm
//Loffy