Home   Help Search Login Register  

Author Topic: Groupname? How to define?  (Read 1030 times)

0 Members and 1 Guest are viewing this topic.

Uber-Pea

  • Guest
Groupname? How to define?
« on: 13 Jun 2005, 17:46:25 »
OK, I want to use the group command for some infantry groups.
I know how to do everything i want now, but one thing is still missing, and i cant find it anywhere.
How to know a groupname???
Lets say I got a five-man squad, the leaders name is player_1 .
do i need a command to give his group a name?
this is the most essential question to groups, but its answered nowhere. no comref, no tut, no other thread in the forums i could find.

ok, lets go straight to MY prob.
2 small groups engage a town. i got a simple enemy not present trigger in the town-area. when enemy is dead the objective is done etc...but now i want the one group to join the other, so theyre merged.
BUT i want to do this with the not present trigger. So the same moment the town is cleared group 2 joins the players group 1. i did this with 2 synchronized waypoints up to now, one lead and one join, but this of course only works if the players hits exactly the WP; and in vetmode its not shown. I want the groups to be merged as soon as the town is cleared.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Groupname? How to define?
« Reply #1 on: 13 Jun 2005, 17:57:43 »
In the init field of of one of the units in one group - conventionally the leader - put:
Groupname1 = group this

 
do the same to the other group

Groupname2 = group this

to get one group to join the other put

units Groupname1 join Groupname2


Don't use a not present trigger unless the area covered is very small.  Loons have a serious habit of getting lost.

And don't use waypoints for the player - he may never actualy get to them
« Last Edit: 13 Jun 2005, 19:46:08 by THobson »

Uber-Pea

  • Guest
Re:Groupname? How to define?
« Reply #2 on: 13 Jun 2005, 18:23:28 »
Thats why I asked ;)
Thanks alot, will test now.
And congrats for abandoned armies, played it yesterday ;) (unfortunately din finish, as the game became unplayable (guess 3-7 fps highest) when i got to la trinite...still thinking how to improve this...

Uber-Pea

  • Guest
Re:Groupname? How to define?
« Reply #3 on: 13 Jun 2005, 19:05:39 »
It works just perfectly (the trigger is just to check if the village is cleared. enemy units that have runn out are an element of surprise (and frustration ^^), as the player mustnt have any outgame information)

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Groupname? How to define?
« Reply #4 on: 13 Jun 2005, 19:47:56 »
Thanks.

No congratulations or plaudits yet please.  There are still some problems with it.  Would you mind posting a comment on the thread saying what your benchmark and cpu speed are?

Uber-Pea

  • Guest
Re:Groupname? How to define?
« Reply #5 on: 13 Jun 2005, 20:08:40 »
how to benchmark?`

got a p4 2500...same generation ram and graphics card

will post in that thread after i have played enough for a usefull comment. from what ive seen: oh, you said no compliments...:)
« Last Edit: 13 Jun 2005, 20:09:41 by Uber-Pea »

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Groupname? How to define?
« Reply #6 on: 13 Jun 2005, 20:11:58 »
to find your benchmark, run the FlashpointPreferences.exe - you'll see benchmark displayed there.

Uber-Pea

  • Guest
Re:Groupname? How to define?
« Reply #7 on: 13 Jun 2005, 20:14:25 »
3864...good or rather bad for my system? (2 posts up)

Uber-Pea

  • Guest
Re:Groupname? How to define?
« Reply #8 on: 13 Jun 2005, 20:21:44 »
Another question, where do I find a tutorial or similar for adding weapon selection to my mission?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Groupname? How to define?
« Reply #9 on: 13 Jun 2005, 20:31:00 »
can't easily find any tutes, but i shall explain it briefly. put the following at the bottom of your description file -

Code: [Select]
// weapons

class Weapons
{
     class g36a
     {
     count = 0;
     };
};

//  ammo

class Magazines
{
     class g36amag
     {
     count = 0;
     };
     class HandGrenade
     {
     count =  3;
     };
     class SmokeShell
     {
     count =  3;
     };
};

combine this with your knowledge of equipment names, and there you go :)

Uber-Pea

  • Guest
Re:Groupname? How to define?
« Reply #10 on: 13 Jun 2005, 20:35:48 »
great thanks, couldn find something either ;)
somehow there is no real "basics" tut. important things are missing where they shall be, like in the ofpec tut section are only things like "how do i control a flying bullet?" and even more specific stuff...:)

thx

qqqqqq

  • Guest
Re:Groupname? How to define?
« Reply #11 on: 13 Jun 2005, 20:39:35 »
Basic tutes are in the Tutorials Getting Started section here

http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=1&category=1_1&subcategory=1_1_1&numreturn=25&displayformat=0&ofpv=1

Especially read everything by snYpir and macguba.
« Last Edit: 13 Jun 2005, 20:40:40 by qqqqqq »

Uber-Pea

  • Guest
Re:Groupname? How to define?
« Reply #12 on: 13 Jun 2005, 20:45:46 »
kk, right, an i know the two golden boys, these are not complete imo. a few "basic" things still missing. but this is not a place to discuss that ;)