Jump to content

Evicol

Member
  • Content Count

    1
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Evicol

  • Rank
    Newbie
  1. So I've started coding around for the first time in the eden editor yesterday and I've been experimenting with a vehicle rearm script. This script rearms one ammo of each pylon each second after it was triggered triggered, or at least that's what it's supposed to do. call{ _veh = thisList select 0; _add = 1; _pylons = getAllPylonsInfo _veh; while {true} do{ hint "loading ammo.."; {_veh setAmmoOnPylon [(_x select 0), _add]} forEach _pylons; _add = _add + 1; sleep 1; }; }; The problem that I have encountered is that I have tried spawning this code to use the wait function without success. The errors tell me that not only is _pylons (and possibly other variables) not defined, but also the fact that there are local variables in a global space... which I searched around and "fixed" using the call function. To clarify, I did spawn it with proper arguments and after I used the params function, to no avail. I'd be grateful if someone could help me with this predicament, as I'm not very experienced in coding. (even less than a day of active coding eperience)
×