OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Resources Beta Testing & Submission => Topic started by: hoz on 20 Jun 2009, 02:46:58

Title: Skeet Examples (Accepted)
Post by: hoz on 20 Jun 2009, 02:46:58
I'm posting these skeet examples I got from Armatec they are really rips from the BI training mission, however these ones are a bit easier to use without the complexity the training mission.

enjoy

OFPEC Download (http://www.ofpec.com/ed_depot/index.php?action=details&id=475)
Title: Re: Skeet Examples
Post by: weamdreaver on 14 Jul 2009, 16:21:28
Thanks a lot.

Can you tell me please, how to edit the script so that I dont have to choose a weapon before I can start the skeet machine?


Edit:
To be more specific, I want to shoot with any weapon I have. Not only with a specific weapon.


Edit2:
And how can I change the direction of the skeet?
When I change the dir of the machine it changes nothing. I tried different values in the script, but the skeet flies always into the same direction.

Help please!
Title: Re: Skeet Examples
Post by: loki72 on 14 Jul 2009, 21:09:25
i too spent a few hours last night trying to change direction of the skeet.

i think its a bug the way it always faces west-ish when it activates...

 :dunno:
Title: Re: Skeet Examples
Post by: weamdreaver on 15 Jul 2009, 09:55:36
No please. Not a bug.
Title: Re: Skeet Examples
Post by: h- on 15 Jul 2009, 12:55:17
As far I can tell this is the disc direction culprit
Code: [Select]
_disc setVelocity [-6.8 + (random 0.4), -7.8 + (random 0.4), 11.8 + (random 0.4)];That always sets it to fly into the same direction (I think  :dunno: ).
So you need to find a way to set the velocity of the disc depending on the skeet machine's direction.

The skeet machine itself is set to 55 with the azimut wheel, setdirred in the init field and setdirred once more in the script..

EDIT:
I tested only the single skeet machine thingy..
Title: Re: Skeet Examples
Post by: weamdreaver on 16 Jul 2009, 20:49:21
And how do I have to edit the script so that I don't have to choose one specific weapon?

Or is there a way to add more weapons to the list, so that the skeet machine accepts the weapon I choose?


Edit:Ok, got it myself.