OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 on 22 Jun 2004, 16:54:14

Title: Joining another group and pounding an area with a real mortar
Post by: Gooner861 on 22 Jun 2004, 16:54:14
Hello there,

Two things, how do u get a couple of ur men and urself to join another group so that u can attack sumwhere.

And i downloaded a mortar recently and was just wondering if anyone knew how i cud make the mortar pound an area. Ive tried to make it fire at an object etc using the doFire command but with no joy  :( .

Cheers

Gooner


Come On England!!!!!!!!!!!!!!
Title: Re:Joining another group and pounding an area with a real mortar
Post by: macguba on 22 Jun 2004, 17:18:06
[loon1, loon2] join grpAlpha

If you're talking about a specific addon, tell us which one.    Some mortars are just objects, they don't do anything.   In that case you'd need to camCreate explosions at the target, or combine them with an existing arty script.

Title: Re:Joining another group and pounding an area with a real mortar
Post by: Gooner861 on 22 Jun 2004, 17:23:56
Ok cheers but how do u name a group, group alpha?

Forget about the mortars, doesnt matter anymore.  :) .



Cheers

Gooner
Title: Re:Joining another group and pounding an area with a real mortar
Post by: dmakatra on 22 Jun 2004, 18:28:01
grpalpha = group this

in leaders init field. If that doesn't work try:

grpalpha = grp this

:beat: *Gets Shot* :beat:
Title: Re:Joining another group and pounding an area with a real mortar
Post by: Gooner861 on 23 Jun 2004, 19:53:20
Ok so i have manged to join a group  ;D .

Bu there is one weird thing that always happens. Each time i join the group the officer of that group seems to be stripped of his ranks and a new random leader is chosen who is normally a private. Now no one wants to be led into battle by a private do they so whats going on?

Cheers

Gooner  
Title: Re:Joining another group and pounding an area with a real mortar
Post by: Dubieman on 23 Jun 2004, 19:59:23
Only thing I can think of is make the leader have the highest rank and have him placed before the other soldiers are put on the map.
Title: Re:Joining another group and pounding an area with a real mortar
Post by: macguba on 23 Jun 2004, 20:56:58
Try

[loon1] join leader grp2