Home   Help Search Login Register  

Author Topic: Several Mission Problems  (Read 786 times)

0 Members and 1 Guest are viewing this topic.

SEAL_Sniper

  • Guest
Several Mission Problems
« on: 14 Aug 2003, 18:04:18 »
I have several problems...I'm making a relatively decent mission (I hope...) and there are a few problems I've come across.

1)  I'm embarassed to call myself an OFP mission maker after asking this but...how do you find the distance to something in a script?  When the player gets within 3m of a downed chopper, I want an action to come up in the action menu.  I just can't figure out the comand to find distance.

2)  How do I use animations?  I have to make a script to simulate setting C4.  All I'm looking for is the kneeling animation, and I can setPos a pipebomb to where he is, then "1" objStatus "DONE".  

That's about it...If I come across any more problems, I'll just post them here.  Thanks for the help!

SEAL_Sniper

_Ross_

  • Guest
Re:Several Mission Problems
« Reply #1 on: 14 Aug 2003, 18:51:10 »
distance syntax: name1 distance name2
?(player distance chopper < 3): blah blah blah

for the animations, use switchmove
dude switchmove "EffectStandSitDown"
i couldnt find anything like a c4, but i didnt look that much

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Several Mission Problems
« Reply #2 on: 14 Aug 2003, 19:51:11 »
Nah, don't be embarrassed .... there are a lot of commands to learn, you don't fail as a mission maker just because you don't know them all off the top of your head.

You can use playmove for a more gradual transition than switchmove.    There is a list of all animations in the Editors Depot under References - Command references.
Plenty of reviewed ArmA missions for you to play

SEAL_Sniper

  • Guest
Re:Several Mission Problems
« Reply #3 on: 14 Aug 2003, 21:18:40 »
Thanks for the speedy responses, I really appreciate the help.  After thinking about it, there are a couple of roadblocks that I don't think I can overcome yet...Besides, it'll be better for the storyline of my missions if the Russian engineers got there already and took anything valuable.  The distance string is a very valuable resource though, and I'm already using it a lot.  Thanks for the help guys!