OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Trash Can Man on 12 Jul 2007, 01:46:58

Title: looping a script
Post by: Trash Can Man on 12 Jul 2007, 01:46:58
How do I get a specific vehicle (a scud launcher) to rearm after the this missile is gone. Here's what I have so far:


_scud = _this select 0

[_scud] exec "GIG_Scud\reammo.sqs"



I want this to repeat.

TCM
Title: Re: looping a script
Post by: Mandoble on 12 Jul 2007, 13:56:54
So is that vehicle rearming correctly or not? If not, it seems a problem related to a particular addon. Other than that, I cannot understand the question/problem.
Title: Re: looping a script
Post by: Planck on 12 Jul 2007, 14:02:21
Well it can't be the BI default scud model as it does not have any weapons and ammo, it is just eye candy.


Planck
Title: Re: looping a script
Post by: Trash Can Man on 12 Jul 2007, 18:43:48
The above script loads the vehicle after the initial missile is fired. But, that's all it does. What I want it (the script) to do is re-arm after it's fired. No matter if it;s the first round or the 10th.


TCM
Title: Re: looping a script
Post by: Mr.Peanut on 12 Jul 2007, 18:59:45
I guess you had better post that script. We are not a psychic hotline!  :shhh:
Title: Re: looping a script
Post by: Trash Can Man on 12 Jul 2007, 19:22:43
Solved


TCM