Search the Community
Showing results for tags 'burned ground'.
Found 1 result
-
particles How do I spawn a crater \ make the ground appear burned?
fess25 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello everyone. I am working on a Vietnam related addon, and I want to make the ground appear black and burned where the napalm had finished burning. To achieve that, I am trying to spawn an oversized sprite of the bomb crater via creation of a #particlesource. I want to spawn a sprite that has a 300 seconds of a lifetime and gradually disappears towards the end. I want the #particlesource to cease its existence after it spawned the first sprite. This is the script I use to spawn a crater params ["_pos"]; _emitter = "Land_HelipadEmpty_F" createVehicleLocal _pos; _lifetime = 300; _source = "#particlesource" createVehicleLocal _pos; _source setParticleCircle [0, [0, 0, 0]]; _source setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 0.25, [0, 0, 0, 0], 0, 0]; _source setParticleParams [ /*Sprite*/ ["\A3\data_f\Krater.p3d", 1, 0, 1, 0], "",// [File,Ntieth,Index,Count,Loop(Bool)], "?" /*Type*/ "SpaceObject", /*TimmerPer*/ 1, /*Lifetime*/ _lifetime, /*Position*/ [0,0,0.2], /*MoveVelocity*/ [0,0,0], /*Simulation*/ 0,1,0,0, //rotationVel,weight,volume,rubbing /*Scale*/ [5], /*Color*/ [[0.1, 0.1, 0.1, 1]], /*AnimSpeed*/ [1000], /*randDirPeriod*/ 0, /*randDirIntesity*/ 0, /*onTimerScript*/ "", /*DestroyScript*/ "", /*Follow*/ _emitter, /*Angle*/ 0, /*onSurface*/ False, /*bounceOnSurface*/ -1, /*emissiveColor*/ [[1,1,1,1]] ]; _source setDropInterval 0.1; sleep 0.15; _source setDropInterval 0; deleteVehicle _source; deleteVehicle _emitter; Unfortunately, I am having an issue where the sprite disappears after only several seconds instead of intended 300. Sometimes the sprite does not appear at all. In many cases sprites appear deformed and out of proportions: https://yadi.sk/i/g7N3VMI0Af6ztg I managed to successfully create a persistant sprite by createSimpleObject ["a3\data_f\krater.p3d", getPos player] but this way I can't change the size of the sprite, and I need to increase the size because my napalm bomb has a burning radius of 20 meters, while the size of a created SimpleObject is barely 3 meters wide. Also I don't know the size of "\A3\data_f\Krater.p3d" texture and can't figure out the right Anim Divisor, I tried changing the Anim Divisor to 1, 2, 3, 4, 8, 16, but it did not help. This is the resource I used https://community.bistudio.com/wiki/ParticleArray So the question is, how do I spawn a static sprite of a crater and make it disappear completely after 300 seconds? Or is there any other way to make the ground look burned?