tsb47 Posted January 8 Posted January 8 What is the scripting function to get a smoke marker like the "smoke marker" or "smoke marker on unit" in the mission editor? I've been using the trigger.action.smoke(vec3, trigger.smokeColor.GREEN) but this isn't the right effect. This effect is insipid and weak. The effect I'm looking for is like the "smoke marker" or "smoke marker on unit" in the mission editor. Does anyone know what function is used for that? Is there, for example, a way to spawn a smoke bomb or rocket with that specific color to go off in a particular location? I couldn't see anything in the scripting documentation like this (and even MOOSE's smoke designation for ranges seems to use the trigger.action.smoke() function)... Cheers! Windows 7 Enterprise 64bit | i7-4790K@4GHz | 8GB RAM | GTX970 347.52
Kanelbolle Posted January 8 Posted January 8 1 hour ago, tsb47 said: What is the scripting function to get a smoke marker like the "smoke marker" or "smoke marker on unit" in the mission editor? I've been using the trigger.action.smoke(vec3, trigger.smokeColor.GREEN) but this isn't the right effect. This effect is insipid and weak. The effect I'm looking for is like the "smoke marker" or "smoke marker on unit" in the mission editor. Does anyone know what function is used for that? Is there, for example, a way to spawn a smoke bomb or rocket with that specific color to go off in a particular location? I couldn't see anything in the scripting documentation like this (and even MOOSE's smoke designation for ranges seems to use the trigger.action.smoke() function)... Cheers! Have you tried: DCS func effectSmokeBig - DCS World Wiki - Hoggitworld.com ? WARGAMES Servers: https://forum.dcs.world/topic/301046-wargames-server-pvp-and-pve-campaign-servers/ Scripts: RGC & SPGG https://github.com/AGluttonForPunishment/
Solution cfrag Posted January 8 Solution Posted January 8 2 hours ago, tsb47 said: The effect I'm looking for is like the "smoke marker" or "smoke marker on unit" in the mission editor. Trigger.action.smoke() is the correct effect, as used in ME. You may want to adjust for terrain elevation by using land.getHeight, else most of your smoke is below the terrain.
tsb47 Posted January 8 Author Posted January 8 2 hours ago, cfrag said: Trigger.action.smoke() is the correct effect, as used in ME. You may want to adjust for terrain elevation by using land.getHeight, else most of your smoke is below the terrain. Thank you. I have already adjusted for landHeight in the script so that it's at ground level. The effect is not what I'm looking for. The smoke effect I'm looking for is like when you fire a WP tipped rocket at the target or drop a training bomb. That gives dense smoke in a plume, marking a particular location. The trigger.action.smoke() effect is like a haze. 3 hours ago, Kanelbolle said: Have you tried: DCS func effectSmokeBig - DCS World Wiki - Hoggitworld.com ? Thank you. Yes, I have but it's not what I'm looking for. I'm after coloured marking smoke that comes from a marker rocket (eg the smoke marker rockets carried by the hind and the hip. Windows 7 Enterprise 64bit | i7-4790K@4GHz | 8GB RAM | GTX970 347.52
cfrag Posted January 8 Posted January 8 (edited) 1 hour ago, tsb47 said: The trigger.action.smoke() effect is like a haze. That is interesting - perhaps we need to align our expectations. Below please find a miz that puts an orange, blue and green smoke in front of a player-controlled frogfoot (free plane) In my DCS install it's colored smoke from script, and looks very much like the smoke from the colored phosphorous round. What do you get? Perhaps post an image or show the code you are using that results in a haze. haze or smoke.miz Edited January 8 by cfrag
tsb47 Posted January 8 Author Posted January 8 10 hours ago, cfrag said: Trigger.action.smoke() is the correct effect, as used in ME. You may want to adjust for terrain elevation by using land.getHeight, else most of your smoke is below the terrain. 7 hours ago, tsb47 said: Thank you. I have already adjusted for landHeight in the script so that it's at ground level. The effect is not what I'm looking for. The smoke effect I'm looking for is like when you fire a WP tipped rocket at the target or drop a training bomb. That gives dense smoke in a plume, marking a particular location. The trigger.action.smoke() effect is like a haze. Thank you. Yes, I have but it's not what I'm looking for. I'm after coloured marking smoke that comes from a marker rocket (eg the smoke marker rockets carried by the hind and the hip. I stand corrected. trigger.action.smoke() was the correct function. I just made a ROOKIE error in my land.getHeight() script which had the smoke spawning at sea level and not at ground level. This meant I could only see the top of the smoke plumes. For anyone that's interested, or possibly amused: -- The line below has a bug: 'z = smoke_vec3.z' is incorrect. land.getHeight() takes vec2 with 'x' and 'y' parameter; not 'x' and 'z'. -- This bug causes this call of land.getHeight() to return 0 i.e., sea level so on elevated terrain smoke spawn below the ground smoke_vec3.y = land.getHeight({x = smoke_vec3.x, z = smoke_vec3.z}) -- Now the corrected line with 'z = smoke_vec3.z' replaced with 'y = smoke_vec3.z". -- This now returns the height of the terrain at the proper location smoke_vec3.y = land.getHeight({x = smoke_vec3.x, y = smoke_vec3.z}) Thanks for the help and sorry about this! Windows 7 Enterprise 64bit | i7-4790K@4GHz | 8GB RAM | GTX970 347.52
Recommended Posts