OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 999chris on 11 Apr 2005, 01:04:18
-
Hello... 6 men start off groupless... they all join an officer (part of the 6) after a certain trigger is activated. but the person I play as always ends up as 1 and the officer 6... meaning the formation is poo especially for Coulmns. How can I make it so I join as a lower number? and the officer is 1st?
-
in a trigger field:
loon1,loon2,loon3,loon4,player] join officer_1
-
do you mean "officer_1" as being the units name right? If you have it like an array thats exactly how ive got the trigger set.
wesgrp=group s0
//s0 being the officer (Lietunant) in his init field
wesmen=[s1, s2, s3, aP, aF]
//s1 etc. Being other soilders in the group, aP being me. This is in a (Initilization) trigger's activation field...
//Triggers Activation
wesmen join wesgrp
this should still work right?
-
yes, it should. :)
If not, then you will probably have to do the list in full, but it is not that hard. :P
-
looks like im looking at the list then...
little help?
-
Maybe you could try making the player join last.
[loon1,loon2,loon3,loon4] join wesgrp
~2
player join wesgrp
Maybe that would work.
Planck
-
yeah done that aswell... not the same way though... I did it so when the truck arrives at the base the team join the leader excluding me and then on the leaders first waypoint (MOVE) I join aP to s0
-
I experimented a bit with this. I thought it would be simple - in fact I thought Planck had the answer (give or take the odd square brackets :)). I now don't see how it can be done - but I am not sure I see the need. The officer will still be the leader so formations should line up on him
If you want to change the leader try this:
http://www.ofpec.com/editors/resource_view.php?id=770 (http://www.ofpec.com/editors/resource_view.php?id=770)
I will keep trying
Tyger - what on earth does you sig mean. I don't like the idea of being killed once let alone several times ;)
EDIT:
Okay I have found a way, but you might not like it.
Start with the player with a low rank in a group. He will be assigned a number which will not be one.
then:
[player] join grpNull
[loon1,loon2,loon3,player] join officer
The player then seems to keep his original number
-
Hmm......well, my square bracket key ran out of ink. ::) ::)
Planck
-
Lol - I have the same problem. Sometimes.
-
Ah nice one I'll give it a try... Im so tired and lazy... and if you saw my mission you would see changing the smallest thing might cause it to fall apart Its a mess... s'all good though. Be right back.
EDIT:
Yep, I grouped ap with s3 (Prvate with Corporal) and then in ap's init field putted...
ap join grpnull