OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Britboy on 16 Apr 2004, 16:24:57
-
I posted this on the official forums but have gotten no reply, so I thought I'd post it here :)
Ok, this is for MP games.
For my squad there are various people of different ranks, and I would like to make these ranks displayable in game. I have a way of doing this in script form, but the tricky bit is assigning them to players.
As we don't necessarily know who will be playing the game that evening it's impossible to edit the mission so the appropriate script for each person is initiated in the unit's init line.
Instead I want to create a 'rank box', like an ammo box except people go up to it, pick the appropriate rank and have the appropriate script run to display it.
However I have no clue as how to code this. Anyone care to help?
Also I hear that if you run a script from the action menu that the visual results aren't visible to other units. Obviously, for this to be any use, this needs to be overcome. Does anyone know a way?
-
i dont think i have a grasp of what you want can you try to expand on it please
are you wanting in some way to display the rank of the unit slot that a player has taken
-
Sorry, perhaps I wasn't clear.
The units have a customisable rank texture which is initiated by a script.
I would like players in game to be able to choose the rank to be displayed.
-
Use the settexture command. Check the comref.
--Ben
-
You could use units like the Lowlands Warrior units, and XML images (Check Avon ladys FAQ for info), with the approprite image in your picture
Like here's mine :
Link (http://www.dbrweb.co.uk/rcir/screen/onix_rcir_tag.jpg)
It also shows up on the lowlands guys arm :) As well as all (All BIS, and a lot of unoficcal) vehicles ;)
- Ben