OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Uber-Pea 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.
-
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
-
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...
-
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)
-
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?
-
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...:)
-
to find your benchmark, run the FlashpointPreferences.exe - you'll see benchmark displayed there.
-
3864...good or rather bad for my system? (2 posts up)
-
Another question, where do I find a tutorial or similar for adding weapon selection to my mission?
-
can't easily find any tutes, but i shall explain it briefly. put the following at the bottom of your description file -
// 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 :)
-
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
-
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.
-
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 ;)