OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MiNtY on 20 Apr 2003, 02:08:33

Title: Talking
Post by: MiNtY on 20 Apr 2003, 02:08:33
Can some one help me plz how do i make one unit talk to another unit in the game?

how does the Mortar unit work in the game i.e how do i get him to use s mortar where does he ues it him self?
can i get a staionary one from anywhere?
Title: Re:Talking
Post by: _hammy_ on 20 Apr 2003, 03:52:22
to ahve units talk over the radio:
this sidechat "hello"

to have a morter fire at something:
morter dofire unit
Title: Re:Talking
Post by: Captain Winters on 20 Apr 2003, 03:56:21
Almost HAMMY! You haveta'

unit selectWeapon weapon
unit doFire target

Should Work!

Tanks!  8)
Title: Re:Talking
Post by: _hammy_ on 20 Apr 2003, 03:59:52
 :P
thanks for correcting me capt. winters :)
Title: Re:Talking
Post by: Captain Winters on 20 Apr 2003, 04:17:06
No Problem Buddy!  ;)

Tanks!  8)
Title: Re:Talking
Post by: MiNtY on 20 Apr 2003, 15:43:53
but i meant not over the radio i mean as in one unit next to the other talking to each other
Title: Re:Talking
Post by: macguba on 20 Apr 2003, 16:42:14
Syntax not guaranteed, nor indeed the effects.


loon1 playmove "EffectStandTalk"

loon1 setMimic "ironic"

loon1 doWatch loon2

Title: Re:Talking
Post by: MiNtY on 20 Apr 2003, 17:54:56
in english please
Title: Re:Talking
Post by: macguba on 20 Apr 2003, 18:29:15
lol I'm terribly sorry, I only speak Flashpoint ....

I have assumed that what you are trying to do is have two units look as if they are talking to each other during a cutscene.

Commands you might find useful are switchmove (or playmove), doWatch and mimic.   To find out more about these commands, and to check my syntax, look them up in the Command References in the Ed Depot.     There are millions of switchmove animations, and 6 or 8 mimics.   These commands go in the script, waypoint or trigger you are using to control the conversation.

loon1 and loon2 are the names of your soldiers, of course you can call them anything you like.

Does that help?   If you can tell me which bits you don't understand I'd be glad to explain, or point you in the direction of the relevant tute.  :)
Title: Re:Talking
Post by: MiNtY on 20 Apr 2003, 18:36:06
thanxs mate can this be used in the the main game when the player is playing not in a cut scene?
Title: Re:Talking
Post by: macguba on 20 Apr 2003, 18:53:18
Yes of course.   Almost everything you can do in a cutscene you can do during normal gameplay, and vice versa.
Title: Re:Talking
Post by: MiNtY on 20 Apr 2003, 20:46:56
thxs alot mate