OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: winged serpent on 25 Feb 2008, 18:58:33
-
:dunno:
i want to create my first addon/script and would like to ask if i am barking up the wrong tree or should i give it a go...
let me explain....
I want to simulate some kind of orbiting laser weapon....i was thinking that a very tall cylinder (with a luminous texture if pos) wolud be dropped into place on the map and maybe set pos a string of GBUs to do the dammage to the target or a trigger to sense and destroy target(s) within range....would be nice if it could be used in conjunction with a sat view script suite ...anyway your thoughts would be much appreciated
thanks
Q
-
definitely possible, using a particle effect (not a cylinder)
http://community.bistudio.com/wiki/ParticleArray
and don't get affraid of those long arrays there, they only look complicated.
edit:
here, there is your particle beam xD (simple version)
_pos = position player;
_ion = "#particlesource" createVehicleLocal _pos;
_ion setParticleRandom [0, [0, 0, 0], [0, 0, 0], 0, 1, [0, 0, 0, 0], 0, 0];
_ion setpos _pos;
_ion setParticleParams ["\Ca\Data\sunHalo.p3d", "", "Billboard", 1, 10, [0, 0, 100], [0,0,-5], 0, 0.5, 0.3, 0.0, [5, 1.5, 3], [[1,1,1,1],[1,1,1,0.0]], [0, 1], 1, 0, "", "", ""];
_ion setDropInterval 0.005;
-
:good:
thanks for the feedback Tajin I'll give it a try