OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: blekzebbed on 26 Jan 2006, 21:44:26
-
A very simple question but I couldn't find it in the FAQ and comref:
Is there a way to (while the mission is running) set the rank of a soldier. Just like you do with: unitname setdammage 1 or unitname setfuel 0 etc. ?
cheers bekzebbed
something like: unitname setrank "colonel" ? :P
changed spelling of "rank"... bedges
-
You mean rank, not rang. :) And sadly, no, there is no way to set the rank of loon during the mission. However, you could delete him and replace him with another loon of a different rank.
Why do you want to change rank anyway? What is the situation? We may be able to find a workaround.
-
if you create a unit with the createunit (http://www.ofpec.com/editors/comref.php?letter=C#createUnit) command, yes.
if you wish to change the rank of an existing unit, no.
-
Thanks dudes, I think it will do with the camcreate command.
o yeah, I meant rank ;), i confused it with my own language
dutch
cheers zebbed