Home   Help Search Login Register  

Author Topic: Burning BH?  (Read 1411 times)

0 Members and 1 Guest are viewing this topic.

Offline shameless

  • Members
  • *
Burning BH?
« on: 22 Apr 2007, 13:47:56 »
First of id like to say hi  :good:

Basically i haven't made a mission in a very long time lol. Now i want to get back into it  :D

Can someone be as kind enough to direct me in the right way of finding a script, that will create black smoke coming from a uh-60?  :whistle:

I want to make a BH down mission...

Ive tried looking for the smoke.sqf but i cant find it  :dry:

Your help will be much appreciated    :cool2: 

EDIT

I found this on wiki http://community.bistudio.com/wiki/ParticleTemplates#BIS_Burning_Vehicle_Fire_Look-Alike but i have no idea how to get it into game as im a total noob when it comes to this part  :( I would like to use the first effect... So far ive got as far as creating a GL and called it _OBJ now im stuck lol.
« Last Edit: 22 Apr 2007, 14:46:49 by shameless »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Burning BH?
« Reply #1 on: 22 Apr 2007, 14:55:17 »
The _OBJ that is referred to in those examples should be your chopper, not a game logic..
This way the smoke is attached to the chopper and so the smoke will emit from it.

It should work just fine if you just copy/paste one of those examples, put them in a script and edit a bit

smoke.sqf (using the Mixed Smoke Large example)
Code: [Select]
_ps1 setParticleCircle [0, [0, 0, 0]];
_ps1 setParticleRandom [0, [0.4, 0.4, 0], [0.4, 0.4, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_ps1 setParticleParams [["\ca\data\particleeffects\fireandsmokeanim\smokeanim.p3d", 8, 1, 6], "", "billboard", 1, 8, [0, 0, 0], [0, 0, 4.5], 0, 10, 7.9, 0.5, [4, 12, 20], [[0.2, 0.2, 0.2, 0.3], [0.35, 0.35, 0.35, 0.2], [0.5, 0.5, 0.5, 0]], [0.125], 1, 0, "", "", _this];
_ps1 setDropInterval 0.2;

_ps2 setParticleCircle [0, [0, 0, 0]];
_ps2 setParticleRandom [0, [0.4, 0.4, 0], [0.4, 0.4, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_ps2 setParticleParams [["\ca\data\particleeffects\fireandsmokeanim\smokeanim.p3d", 8, 3, 1], "", "billboard", 1, 8, [0, 0, 0], [0, 0, 4.5], 0, 10, 7.9, 0.5, [4, 12, 20], [[0.33, 0.33, 0.33, 0.8], [0.66, 0.66, 0.66, 0.4], [1, 1, 1, 0]], [0.125], 1, 0, "", "", _this];
_ps2 setDropInterval 0.2;
You can execute the script from some trigger, init.sqs/sqf or from the chopper's init field for example like this (the choppername should be changed to your chopper's name of course)
Code: [Select]
call {choppername execVM "smoke.sqf"}If you want the smoke to stop at some point that of course has to be added in the above example script.

Can't tell in 100% certainty that this will work because I can't test this at the moment..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline shameless

  • Members
  • *
Re: Burning BH?
« Reply #2 on: 22 Apr 2007, 15:06:33 »
Thanks for the reply  :good:

Going to test now  :)

Edit

Hmmm i tried what you said but no joy...

First of all i made the smoke.sqf

Code: [Select]
_ps1 setParticleCircle [0, [0, 0, 0]];
_ps1 setParticleRandom [0, [0.4, 0.4, 0], [0.4, 0.4, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_ps1 setParticleParams [["\ca\data\particleeffects\fireandsmokeanim\smokeanim.p3d", 8, 1, 6], "", "billboard", 1, 8, [0, 0, 0], [0, 0, 4.5], 0, 10, 7.9, 0.5, [4, 12, 20], [[0.2, 0.2, 0.2, 0.3], [0.35, 0.35, 0.35, 0.2], [0.5, 0.5, 0.5, 0]], [0.125], 1, 0, "", "", _this];
_ps1 setDropInterval 0.2;

_ps2 setParticleCircle [0, [0, 0, 0]];
_ps2 setParticleRandom [0, [0.4, 0.4, 0], [0.4, 0.4, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_ps2 setParticleParams [["\ca\data\particleeffects\fireandsmokeanim\smokeanim.p3d", 8, 3, 1], "", "billboard", 1, 8, [0, 0, 0], [0, 0, 4.5], 0, 10, 7.9, 0.5, [4, 12, 20], [[0.33, 0.33, 0.33, 0.8], [0.66, 0.66, 0.66, 0.4], [1, 1, 1, 0]], [0.125], 1, 0, "", "", _this];
_ps2 setDropInterval 0.2;

Then i named the chopper _obj

I then put several lines into the init field on the chopper but none worked

Code: [Select]
call {_obj execVM "smoke.sqf"}
Code: [Select]
this exec "smoke.sqf"
Im not sure if the script is right but i put what you said..
« Last Edit: 22 Apr 2007, 15:26:23 by shameless »

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Burning BH?
« Reply #3 on: 22 Apr 2007, 15:59:41 »
_obj is a local variable. This means that only the script it is defined in will know what it is. You shouldn't be using it as a name of an object.

Quote
call {this execVM "smoke.sqf"}

Put that in the chopper's init field. You don't need to name it.

The script is missing stuff at the start. It does not create the particle source:

Quote
In addition, a particle source has to be defined:

_PS = "#particlesource" createVehicleLocal getpos _OBJ;

So the script will look like this:

Code: [Select]
_ps1 = "#particlesource" createVehicleLocal getpos _this;
_ps1 setParticleCircle [0, [0, 0, 0]];
_ps1 setParticleRandom [0, [0.4, 0.4, 0], [0.4, 0.4, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_ps1 setParticleParams [["\ca\data\particleeffects\fireandsmokeanim\smokeanim.p3d", 8, 1, 6], "", "billboard", 1, 8, [0, 0, 0], [0, 0, 4.5], 0, 10, 7.9, 0.5, [4, 12, 20], [[0.2, 0.2, 0.2, 0.3], [0.35, 0.35, 0.35, 0.2], [0.5, 0.5, 0.5, 0]], [0.125], 1, 0, "", "", _this];
_ps1 setDropInterval 0.2;

_ps2 = "#particlesource" createVehicleLocal getpos _this;
_ps2 setParticleCircle [0, [0, 0, 0]];
_ps2 setParticleRandom [0, [0.4, 0.4, 0], [0.4, 0.4, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_ps2 setParticleParams [["\ca\data\particleeffects\fireandsmokeanim\smokeanim.p3d", 8, 3, 1], "", "billboard", 1, 8, [0, 0, 0], [0, 0, 4.5], 0, 10, 7.9, 0.5, [4, 12, 20], [[0.33, 0.33, 0.33, 0.8], [0.66, 0.66, 0.66, 0.4], [1, 1, 1, 0]], [0.125], 1, 0, "", "", _this];
_ps2 setDropInterval 0.2;

_this is a variable thats given to the script when executed. It contains the object's name.

Edit : Tested + works  :yes:

Offline shameless

  • Members
  • *
Re: Burning BH?
« Reply #4 on: 22 Apr 2007, 16:36:11 »
Thank you both very much!

works a treat  :good: