Home   Help Search Login Register  

Author Topic: How do i get squad leader correctly?  (Read 846 times)

0 Members and 1 Guest are viewing this topic.

GeneralCoder

  • Guest
How do i get squad leader correctly?
« on: 14 Nov 2002, 15:45:25 »
Hi

is it bossible to get the new leader if i only know the former leader (wich is dead)

example:
if i have _man (_man is leader) and he dies how can i get the new leader?

?(alive _man) : _man leader _man

???

Offline MI_Fred

  • Members
  • *
  • AA
    • OFP Team Finlanders
Re:How do i get squad leader correctly?
« Reply #1 on: 14 Nov 2002, 20:04:55 »
The way to issue commands to the current leader :
put the following in the officers initfield:
yogrp : group this

and to issue the commands to him:
(leader yogrp) move getpos [5555,5555,0]

If that is what u fancy  :)
There's gooks over there, there's mines over there, and watch out those goddamn monkeys talk, I'll bite ya.

GeneralCoder

  • Guest
Re:How do i get squad leader correctly?
« Reply #2 on: 15 Nov 2002, 02:03:48 »
The way to issue commands to the current leader :
put the following in the officers initfield:
yogrp : group this

and to issue the commands to him:
(leader yogrp) move getpos [5555,5555,0]

If that is what u fancy  :)


no i dont fancy that ;)

u see i need only the leader becose he has to take the flag.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:How do i get squad leader correctly?
« Reply #3 on: 15 Nov 2002, 02:15:39 »
just use

leader groupname

itwil tel u who is da squad leader

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

GeneralCoder

  • Guest
Re:How do i get squad leader correctly?
« Reply #4 on: 15 Nov 2002, 13:00:15 »
just use

leader groupname

itwil tel u who is da squad leader

LCD OUT

my point was that i dont have group name.. becose i was trying to do shometing odd.  ::)

but i do that, thanks!

oh one thing, what if all of the squad members are dead what will it return then?
objNull ?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:How do i get squad leader correctly?
« Reply #5 on: 15 Nov 2002, 14:46:58 »
donno didnt try  :P but i think dat i will give u da name of da last unit 2 die ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Wiper

  • Members
  • *
Re:How do i get squad leader correctly?
« Reply #6 on: 17 Nov 2002, 19:14:44 »
GC,
if you put
MyGroup=group this
in the init line of any(!) of the group members you WILL HAVE a group name.

So the command
leader MyGroup
provides you with the leader each time u ask for it.

If all group members are dead, " count units MyGroup = 0 ",
MyGroup is still a valid variable name and, yes, the 'leader' command might deliver some "isNull error" ... BUT don't forget... OFP can take a minute(s !) to update the group array data after the last team member dies...

ww