OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: udaloy on 15 Jul 2008, 01:32:47

Title: need help with config value change
Post by: udaloy on 15 Jul 2008, 01:32:47
i can't resolve a problem :(

Code: [Select]
class SoldierEB : CAManBase
{
scope = 2;
side = 0;
displayName = "$STR_DN_RIFLEMAN";
model = "\ca\characters\np_soldier_b";..... etc

i want to dynamic change parameter $STR_DN_RIFLEMAN "on the fly"
in stringtable.csv i wrote:
Code: [Select]
LANGUAGE,English
STR_DN_RIFLEMAN,%1

need to make this "%1" value, depending from weapon in unit hands.

Example:
if unit not have weapon in hands, this %1 value always should be "NOWEAPON"
if unit have in hands M4, value always should be "WEAPON1"
if unit have in hands M4GL, value always should be "WEAPON2"
e.t.c

any idea how to make it?
Title: Re: need help with config value change
Post by: Gnat on 15 Jul 2008, 12:35:08
I could be wrong but I very much doubt ANYTHING about stringtable.csv can be change after the initial load.
Having OFP re-read or dynamicly assign values from stringtable.csv I'd consider an unlikely function of what BIS intended with the game engine.

Aside from that, I dont understand what you are typing to acheive.
You trying to dynamicly change the name within the Editor?
You trying to change the in-game "tag"?
Title: Re: need help with config value change
Post by: Planck on 15 Jul 2008, 18:12:35
Stringtables are read at game start and are not read again AFAIK, unless you restart the game that is.


Planck