Home   Help Search Login Register  

Author Topic: vits antonov action  (Read 1334 times)

0 Members and 1 Guest are viewing this topic.

C4_tnt

  • Guest
vits antonov action
« on: 16 Apr 2005, 16:12:06 »
well, simple question, do any one know  how to make a trigger that will open the cargo and nose door of the antonov 124 made by vit, great addon by the way.


i thought it should look like: (antonovs name) action["openrear"] or something like that.

thnx for any cooperation

UNN

  • Guest
Re:vits antonov action
« Reply #1 on: 16 Apr 2005, 16:31:55 »
You can call the same scripts the Addon uses.

From the aircrafts Init field:

Code: [Select]
[This] Exec "\Antonov\Sqs\an124openramp.sqs"
For a trigger you will have to give the aircraft a variable name:

Code: [Select]
[MyAntonov] Exec "\Antonov\Sqs\an124openramp.sqs"
BTW It's worth DePbo'ing the addon, as there are probably other scripts you would want to use in there to.

Offline Pilot

  • Contributing Member
  • **
Re:vits antonov action
« Reply #2 on: 16 Apr 2005, 16:33:30 »
Hey C4_tnt,

You don't use the action command for something like this.  You can do it one of two ways:
If the addon has a built in script to call the animations, exec the script from the mission, ex:
[] exec "/addonname/scriptname.sqs"

Or, if the addon doesn't have a script, you will have to use the animate command:
NameOfPlane animate ["AnimationName", 1]

I'll see if I can't get vit's AN124 and tell you the exact method.  I have been meaning to get it, and this is a good excuse to download it. :P

EDIT:
Beaten again, I'm getting slow
« Last Edit: 16 Apr 2005, 16:34:27 by Student Pilot »

C4_tnt

  • Guest
Re:vits antonov action
« Reply #3 on: 16 Apr 2005, 21:04:48 »
the thing is, wuts the animation name? what is the script name? THAT is what I want to know... sry if I wasnÂ't clear.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:vits antonov action
« Reply #4 on: 16 Apr 2005, 21:26:09 »
As far as I can see UNN has posted the script name in his last post.

Quote
[This] Exec "\Antonov\Sqs\an124openramp.sqs"

Seems to me that that is the one you want.....unless UNN was just guessing.   ;D  ;D


Planck
I know a little about a lot, and a lot about a little.

C4_tnt

  • Guest
Re:vits antonov action
« Reply #5 on: 16 Apr 2005, 21:45:37 »
yeah correct, but for that(didnÂ't tested yeat) shouldnÂ't you have the sqs file? i mean, wouldnÂ't i need to have this sqs file on my mission folder to the animation work? if yes, certainly it must come with the addon... if i depbo the addon can i find the sequence in there?

probably speaking many nonsense.. but I am trying to put many info as I can

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:vits antonov action
« Reply #6 on: 16 Apr 2005, 22:29:26 »
The sqs file is included with the addon presumably.

You can run it from where it is, you don't need to have it in your mission folder.

The code UNN provided will run it frm there.

"\Antonov\Sqs\an124openramp.sqs"

\Antonov is the addon PBO which is in your addons folder.
\Sqs is the script folder which is inside the PBO.
\an124openramp.sqs is a  script which is in this folder.


Planck
I know a little about a lot, and a lot about a little.

C4_tnt

  • Guest
Re:vits antonov action
« Reply #7 on: 16 Apr 2005, 23:12:49 »
thnx a lot guys, butone last question, how do you find the action name, cause i want to know how to close the ramp, the front and rear ramp etc.... thnx a lot

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:vits antonov action
« Reply #8 on: 16 Apr 2005, 23:26:02 »
you'll be looking for the animation name, action is bad

for this you would have to look in the config.cpp file and that is where it gets complicated. You should see something like:
Code: [Select]
...
this animate ["animationname",0]
....
and
Code: [Select]
...
this animate ["actionname",1]
...
but if you don't know exactly what you're looking for it could be difficult.
« Last Edit: 16 Apr 2005, 23:28:21 by Tyger »
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

C4_tnt

  • Guest
Re:vits antonov action
« Reply #9 on: 17 Apr 2005, 01:49:26 »
ummmm, damn i am so ****ing stupid, yes its animation no actio duuhhh. thnx tyger..... realy dumb of my part, and sorry for you guys that looked it out for me...

ok now i think we are getting closer, how do I open this ccp file, a time ago peaple told me to open it, dont know really what for, but anyway now i have an good excuse... how do I open it? need any program like and depbo program? could you guys give me any link to get this program?

thnx a lot guys, sry for my mistake. I first saw this animation thing in a gate that opened and closed, than iÂ've discovered that most of the addons that made more than just kill or stand still had this thing... well I guess i confused action with animate because i just read some action posts...