OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: GalComT on 04 May 2003, 10:41:34

Title: Multible useractions
Post by: GalComT on 04 May 2003, 10:41:34
I am trying to link multiple user actions (vehcile animations), i want all of those animations to ocour at the same time with one action in the action menü, i have tried it within the config but it didn't work, i would apresiate any help.

Greatings GalComT
Title: Re:Multible useractions
Post by: Skaircro on 04 May 2003, 16:41:47
If you set your user action up to trigger a script, then in the script you can have all the animations you want.

Put something like this in your Class UserActions:
class Animation
{
displayName="Animate Stuff";
position="TriggerArea";
radius=2;
condition="player in this";
statement="[this] exec ""\addon_name\animate.sqs""";
};


And this in your script:
_vehicle = _this select 0

#animate
_vehicle animate ["partA",1]
_vehicle animate ["partB",1]
_vehicle animate ["partC",1]
_vehicle animate ["partD",1]
Exit