OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: loki72 on 07 Jun 2008, 02:42:33
-
greetings,
how would i make arty fall in the Fibonacci sequence?
(http://img527.imageshack.us/img527/6730/180pxfibonaccispiral34swq2.png)
A Fibonacci spiral created by drawing arcs connecting the opposite corners of squares in the Fibonacci tiling; this one uses squares of sizes 1, 1, 2, 3, 5, 8, 13, 21, and 34....
thx
-
Some complex math for sure... do-able, but Im not sure how.
while {_i < 90} do {
_x = (_howBigA * (sin _i));
_y = (_howBigB * (cos _i));
_x_rot = _xPos + _x*(cos _angle) - _y*(sin _angle);
_y_rot = _yPos + _x*(sin _angle) + _y*(cos _angle);
_k = createVehicle ["Danger",[_x_rot, _y_rot,0], [], 0, "NONE"];
_m = createMarker [format ["Marker" + str _i],[ _x_rot, _y_rot,0]];
format ["Marker" + str _i] setMarkerType "Dot";
_k setDir _i;
format ["Marker" + str _i] setMarkerDir (_i - _angle);
_i = _i + (90/_tablesC);
};
Might get you started, not sure.
-
thx for the reply rommel,
i tried it in the editor.. nada..
i can see it is supposed to put marker dots on the map..
b.t.w... great job on the ai script.. something arma has needed for a while.
edit:
@rommel
i would like to see the script you wrote work.. if possible.. it would be nice to have a 'map marker template' to try new equations on.
once i figure out how to add them...lol