Home   Help Search Login Register  

Author Topic: need help with config value change  (Read 1653 times)

0 Members and 2 Guests are viewing this topic.

Offline udaloy

  • Members
  • *
need help with config value change
« 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?

Offline Gnat

  • Addons Depot
  • Moderator
  • *****
  • I Bite!
    • Gnats
Re: need help with config value change
« Reply #1 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"?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: need help with config value change
« Reply #2 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
I know a little about a lot, and a lot about a little.