OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: macguba on 20 Mar 2003, 18:20:48
-
Anybody know how to get the rank of a unit? I mean sort of like getdammage.
Thanks
-
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
-
of coure in a campaign you ca do it by loadstatus but that not any good unless you have an objects.sav
-
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"]
-
no way :P
but wat u wanna do wid it ? mebe i cn find somin else 2 help u ;)
LCD OUT
-
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.
-
u r actin st00pid mac :P
after all u set da rank of da loon - just write it :P (if its 4 script were its _unit - it can get more complicated ;D - but i can do it 4 u ;))
LCD OUT
-
;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]
-
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
-
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 ..... ::)