OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BHD Mod on 22 Mar 2003, 22:25:53

Title: 2 questions
Post by: BHD Mod on 22 Mar 2003, 22:25:53
#1: I have one west unit called "A". I have one object called "B". what do I type in the init field of a unit to make "A" shoot at "B"?

#2: What do I type in the init field of a unit to make it start the level crouching?

For some people these questions might be really easy, but I just can't make these two things happen.

All answers are appreciated.

p.s: I have already checked the turorials.
Title: Re:2 questions
Post by: BaKaRa on 22 Mar 2003, 22:32:04
#1 : Try This:      A DoFire B            or               A DoTarget B

#2 : Try This:      UnitName SetUnitPos "DOWN"    
Title: Re:2 questions
Post by: Flapje on 22 Mar 2003, 22:34:05
1: abuu's editing tutorial is a good one for these questions.

2: your pic is a little to the large side  ;)
Title: Re:2 questions
Post by: macguba on 22 Mar 2003, 22:36:18
1)  

A doTarget B; A doFire B

2)

The commands you need are switchMove and playMove.   Look in the Unofficial command ref in the Ed Depot for the particular animation that you want (or search the forum).   The end result willl be something like

this switchMove "crouchToCombat"        (syntax not guaranteed)

Never worry about asking a question that is too easy - the forum exists to help people when they get stuck.    The important thing is to do your homework first:  as long as you have checked the tutes and searched the FAQ and the forum, you may ask anything you want.  :)

PS - read the sticky at the top of the forum as well  ;)
Title: Re:2 questions
Post by: dmakatra on 22 Mar 2003, 23:11:49
Many new guys today. My welcome lines are tired. :beat:

WELCOME, DUDE!