Jump to content

nuxil

Member
  • Content Count

    1606
  • Joined

  • Last visited

  • Medals

Everything posted by nuxil

  1. Thanks UNN. looks amazing, but i dont understand crap of that. [_OBJECT,[_Ox,_Oy,_Oz]] <-- = ? so lets say that _OBJECT is my missile. is _Ox,_Oy,_Oz its pos? in that case why use extra parameters. why not just get the pos from within the script!
  2. that simple ? I thought setvectorup only worked with +1 / -1 for the 3 axis.. exs: [1,0,-1]; could anyone point me to a good vectorup/dir guide!
  3. problem solved thanks for your help guys.
  4. hi forum.. i need some help solve my little problem.. i need to know how i can pass an argument to a running script.. without using publicalvariable's i tried using something like this.. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> // test.sqf _me = _this select 0; _id = _this select 2; _arg = _this select 3; while {(_arg == 1)} do { hint "the test script is running"; sleep 1; _me removeaction _id; <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> // init.sqf _me = _this select 0; _teston = _me addaction["t on", "test.sqf",1,1,false]; _testoff = _me addaction["t off", "test.sqf",0,1,false]; but the problem with this is that its not stoping.. but rather staring a script and passing 0 as the argument when i press t off in my user action menu.. ps. i need to use the user action menu.
  5. thanks Junker. im verry grateful for that i dont have inet myself so i have a hard time getting info about all commands..all i got is a old outdated ofp command ref.. now i'll go back to my scripting thanks again
  6. so find some secondary school textbook that was helpfull.. keep you ignorant post's to yourself. and let people that acutaly want to help post.
  7. hi all. i dont know if this is the right place to ask. but a while back i saw someone had made a binoculars with distance messuring. does anyone know where i can get my hands on it?
  8. what about. You make the trigger. activeted by, the side you want. then condition you put, !player and on act you put a script. "nil = thislist execvm "yourscript.sqf" or {player sidechat format["%1 activated trigger",_x]} foreach thislist http://community.bistudio.com/wiki/list
  9. no.. it was like. the thing you pointed the crosshair at when you where in "binocular mode". showed you the distance to it.. but i cant remember if it was a addon, or if it was a script that showed the distance with "hint". but i guess it is verry easy to make . with the laser. but not 100% sure
  10. hi forum! i know someone has made a script that allows you to shoot from heli's.. but i dont remember the name of it and i cant find it anywhere. could someone help me please ?
  11. Hello, whats wrong with this script?; cant get anything to show in the box.... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _px = getpos player select 0; _py= getpos player select 1; _pz = getpos player select 2; // Parachute.. _ParachuteC = "ParachuteC" createvehicle [0,0,100]; //WeaponBoxWest _ammobox = "WeaponBoxWest" createvehiclelocal [0,0,10]; //somehow i dont get the icon up "the 3 bullets" for some time,, maybe the arma engine must make it ready?? sleep 4; clearmagazinecargo _ammobox; clearweaponcargo _ammobox; // i want to add this into the ammobox _ammobox AddWeaponCargo ["MP5A5", 40]; _ammobox AddWeaponCargo ["MP5SD", 40]; _ammobox AddWeaponCargo ["M16A2", 40]; _ammobox AddWeaponCargo ["M16A2GL", 40]; _ammobox AddWeaponCargo ["M16A4", 40]; _ammobox AddWeaponCargo ["M16A4_ACG", 40]; _ammobox AddWeaponCargo ["M16A4_ACG_GL", 40]; _ammobox AddWeaponCargo ["M4", 40]; _ammobox AddWeaponCargo ["M4GL", 40]; _ammobox AddWeaponCargo ["M4AIM", 40]; _ammobox AddWeaponCargo ["M4A1", 40]; _ammobox AddWeaponCargo ["M4A1GL", 40]; _ammobox AddWeaponCargo ["M4A1SD", 40]; _ammobox AddWeaponCargo ["G36K", 40]; _ammobox AddWeaponCargo ["G36C", 40]; _ammobox AddWeaponCargo ["G36A", 40]; _ammobox AddWeaponCargo ["M240", 40]; _ammobox AddWeaponCargo ["M249", 40]; _ammobox AddWeaponCargo ["M24", 40]; _ammobox AddWeaponCargo ["M4SPR", 40]; _ammobox AddWeaponCargo ["M107", 40]; _ammobox AddWeaponCargo ["M9", 40]; _ammobox AddWeaponCargo ["M9SD", 40]; _ammobox addWeaponCargo ["Laserdesignator",40]; _ammobox addMagazineCargo ["HandGrenadeTimed",40]; _ammobox addMagazineCargo ["m136",40]; _ammobox addMagazineCargo ["Stinger",40]; _ammobox addMagazineCargo ["JAVELIN",40]; _ammobox addMagazineCargo ["1rnd_HE_M203",40]; _ammobox addMagazineCargo ["FlareWhite_M203",40]; _ammobox addMagazineCargo ["FlareRed_M203",40]; _ammobox addMagazineCargo ["FlareGreen_M203",40]; _ammobox addMagazineCargo ["FlareYellow_M203",40]; _ammobox addMagazineCargo ["SmokeShell",40]; _ammobox addMagazineCargo ["SmokeShellRed",40]; _ammobox addMagazineCargo ["SmokeShellGreen",40]; _ammobox addmagazinecargo ["15rnd_9x19_m9sd", 40]; _ammobox addmagazinecargo ["15rnd_9x19_m9", 40]; _ammobox addmagazinecargo ["30Rnd_9x19_MP5SD", 40]; _ammobox addmagazinecargo ["30Rnd_9x19_MP5", 40]; _ammobox addmagazinecargo ["30Rnd_556x45_StanagSD", 40]; _ammobox addmagazinecargo ["30rnd_556x45_Stanag", 40]; _ammobox addmagazinecargo ["30Rnd_556x45_G36",40]; _ammobox addmagazinecargo ["200Rnd_556x45_M249", 40]; _ammobox addmagazinecargo ["100Rnd_762x51_M240", 40]; _ammobox addmagazinecargo ["5Rnd_762x51_M24", 40]; _ammobox addmagazinecargo ["10Rnd_127x99_m107", 40]; _ammobox addMagazineCargo ["Laserbatteries",40]; _ammobox addWeaponCargo ["Binocular",40]; _ammobox addWeaponCargo ["NVGoggles",40]; _ammobox addWeaponCargo ["Phone",40]; //place the ammobox & the parachute above the player.. _ammobox setpos [(_px)+31,_py,(_pz)+60]; _ParachuteC setpos [(_px)+30,_py,(_pz)+61]; _alt = 1; while{(_alt == 1)} do { _ppx = getpos _ParachuteC select 0; _ppy = getpos _ParachuteC select 1; _ppz = getpos _ParachuteC select 2; _pax = getpos _ammobox select 0; _pay = getpos _ammobox select 1; _paz = getpos _ammobox select 2; // place the box under the parachute and let the ammobox fall with the speed of the parachute. _ammobox setpos [(_ppx)+1.5,_ppy, (_ppz)-0.5]; _ammobox setvelocity velocity _ParachuteC; //hint format["Px:%1\nPY:%2\nPZ:%3\nAx:%4\nAy:%5\nAz:%6",_ppx,_ppy,_ppz,_pax,_pay,_paz]; if ((_ppz) < 2) then { _alt = 0; _ammobox setpos [_ppx,_ppy,0.1]; // just incase it gets dammages during the drop,, _ammobox setdamage 0; }; sleep 0.01; }; Im supose to simulate ammordop from parachute, everything works fine exept for that the ammobox remains empty... Any ideas? Or help would be very axcepted
  12. hi forum! i would like some help please.. well let me try to explain the issue. im trying to spawn/create a vehicle in a radius on 1-2 Km on map click. what i mean is that. when i click on the map. i want a vehicle to be created at a random position within a radius at 1-2 Km. "n e s w" from the click on the map. i want to simulate a inaccurat vehicile drop which i need to be looking for in my mission.. i got everything else to work exept this random positioning, how can i do this.?
  13. nuxil

    RKSL Studios

    i feel that the opfor is starting to lack aircrafts while bluefor got plenty so this good news to me.. indeed news
  14. nuxil

    RKSL Studios

    nice stuff question to the addons makers "RKSL Studios". can you also make some russian aircrafts ? mig 29/31 ? thats would be awsome.. btw you have done a great job on your addons.. keep up the good work
  15. nuxil

    Player jumping

    what? how can you even compare this game to bf "X" just because there is added jumping. arma is supppose to simulate real life as much as posseble compared to other game.. last time i checked.. i can still jump i like it, and keep up the good work!!
  16. hi all.. im just woundering if someone has made a flars script for the jet planes in arma? i have the some addons. where the plain give me a sound warning and a message about incomming missiles. and i want to use flare to avoid the missiles. is this posseble to script this or if someone has made a script like this pls give it to me
  17. hi all.. im just woundering if anyone has made some aircrafts and want to share them with me ..i mean jet plains. i want some other aircrafts besides the a-10 and the harrier. f-14 tomcat/f15/f16 would be cool
  18. ok so i guess no one has some models to share, i have no experiance in making 3d models.. but im willing to learn it. i got plenty of time can i use blender to make models for arma?
  19. hi all.. im just woundering if anyone has made some aircrafts and want to share them with me ..i mean jet plains. i want some other aircrafts besides the a-10 and the harrier. f-14 tomcat/f15/f16 would be cool
  20. nuxil

    Directions

    Thank you verry mutch
  21. hi.. i want unit A to setDir to "unit B or pos B" i come up with some messy code that needs to be simplefyed,, anyone got a great idea.. or is there a command i missed that does exactly this? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _Plpos = getpos player; _cx = _Plpos select 0; _cy = _Plpos select 1; _cz = 0; _ppos = getpos _plane; _px = _Ppos select 0; _py = _Ppos select 1; _pz = _Ppos select 2; _hyp = [_px,_py,0] distance [_cx,_cy,0]; _htt=0; if ((_px < _cx) && (_py < _cy)) then { _hk = [_px,_py,0] distance [_cx,_py,0]; _mk = [_cx,_py,0] distance [_cx,_cy,0]; _tanvink=( _mk / _hk ); _reelvink = atan _tanvink; _htt = 90 - _reelvink; }; if ((_px < _cx) && (_py > _cy)) then { _hk = [_px,_py,0] distance [_cx,_py,0]; _mk = [_cx,_py,0] distance [_cx,_cy,0]; _tanvink=( _mk / _hk ); _reelvink = atan _tanvink; _vx = 90 + _reelvink; _htt = _vx; }; if ((_px > _cx) && (_py > _cy)) then { _hk = [_px,_py,0] distance [_px,_cy,0]; _mk = [_px,_cy,0] distance [_cx,_cy,0]; _tanvink=( _mk / _hk ); _reelvink = atan _tanvink; _htt = 180 + _reelvink; }; if ((_px > _cx) && (_py < _cy)) then { _hk = [_px,_py,0] distance [_cx,_py,0]; _mk = [_cx,_py,0] distance [_cx,_cy,0]; _tanvink=( _mk / _hk ); _reelvink = atan _tanvink; _htt = 270 + _reelvink; }; _pane setdir _htt; i dont want to use this messy code.. but if theres no other way i guess i just have to use it, is there anyone that know a simpler way to do it?
  22. Shuko yea your right.. you will never get the number.. i did a test on it.. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _a = 0; while {(true)} do { _vaule=(random 31) + 13; _a=_vaule; _r = round _a; _f = floor _a; hint format["round = %1\nfloor = %2\nrandom = %3", _r, _f, _value]; sleep 0.5; }; if you test this.. you see that floor never becoms 44. so i see no point in using floor if you need the value 44.. i still think round is the proper way.
  23. hmm! lets take rundll.exe example. where you need a random number between 31 and 44.. with floor you will never get 44 unless the random vaule is exactly 44 ? right?
  24. from wat i understan from the wiki floor Returns the next lowest integer.. so what if he's random vaule is 43.99. with floor wount that become 43? with round that will become 44.. if i got it correct
  25. why use floor? i think its better to use round command
×