Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Rank
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Rank (Read 1312 times)
0 Members and 1 Guest are viewing this topic.
macguba
Former Staff
Rank
«
on:
20 Mar 2003, 18:20:48 »
Anybody know how to get the rank of a unit? I mean sort of like getdammage.
Thanks
Logged
Plenty of
reviewed ArmA missions
for you to play
Ace
Guest
Re:Rank
«
Reply #1 on:
20 Mar 2003, 18:27:34 »
I don't know if thats posible...
But there is a getskill command,
So if you have all private on low skill, sergeants on medium and captians on full you could do it that way
Logged
Ace
Guest
Re:Rank
«
Reply #2 on:
20 Mar 2003, 18:30:54 »
of coure in a campaign you ca do it by
loadstatus
but that not any good unless you have an objects.sav
Logged
Artak
The old beanbag shaker
Former Staff
You want to talk about it, yes?
Re:Rank
«
Reply #3 on:
20 Mar 2003, 19:16:57 »
There's no exact command for it as far as I know.
Anything related to this is that you can createunit a unit and in it's paremeters you can define his rank. :-\
"soldierwb" createunit [getpos temp1, west1, "westman1 = this", 1, "LIEUTENANT"]
Logged
Not all is lost.
LCD
Former Staff
Re:Rank
«
Reply #4 on:
24 Mar 2003, 00:28:38 »
no way
but wat u wanna do wid it ? mebe i cn find somin else 2 help u
LCD OUT
Logged
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing -
O-Team Beta
macguba
Former Staff
Re:Rank
«
Reply #5 on:
24 Mar 2003, 00:38:40 »
nah, it doesn't really matter ...... I just wanted to use it in a cutscene text something like this
titletext [format ["%1 %2 blah blah blah.", rank loon1, name loon1],"plain",1]
The name works, and it would be nice to have the rank too.
Logged
Plenty of
reviewed ArmA missions
for you to play
LCD
Former Staff
Re:Rank
«
Reply #6 on:
24 Mar 2003, 00:43:43 »
u r actin st00pid mac
after all u set da rank of da loon - just write it
(if its 4 script were its _unit - it can get more complicated ;D - but i can do it 4 u
)
LCD OUT
Logged
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing -
O-Team Beta
macguba
Former Staff
Re:Rank
«
Reply #7 on:
24 Mar 2003, 00:50:25 »
;D its for my onplayerkilled script (already implemented in Regina Proeliorum in the Ed Depot) .... so it could be any enemy loon in the game ;D
relevant parts of the script so far ... it works fine, I would just like to add the villain's rank.
_player = _this select 0
_killer = _this select 1
_hero=name _player
_villain= name _killer
titletext [format ["Lieutenant %1\n\nKilled in Action by %2\n10 January 1986\nR. I. P.",_hero,_villain],"plain",2]
Logged
Plenty of
reviewed ArmA missions
for you to play
LCD
Former Staff
Re:Rank
«
Reply #8 on:
24 Mar 2003, 00:53:03 »
lol
my way will use array so prooly wont help u (u wil have 2 add every single man 2 da array wid his rank so its not realy somin 2 do but i can do it nyway
just lots work 4 u - tel me if u want me and ill do ;D)
LCD OUT
Logged
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing -
O-Team Beta
macguba
Former Staff
Re:Rank
«
Reply #9 on:
24 Mar 2003, 00:59:28 »
thanks LCD, but don't bother ... its not worth the trouble for something purely cosmetic. I've got better things to do than write out a list of every west unit in the game .....
Logged
Plenty of
reviewed ArmA missions
for you to play
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Rank
Top of page