Marvel4 wrote:Because the first person file is located in the _lvl_pc\fpm\imp folder and not in the _lvl_pc\imp folder.
Likewise, ReadDataFile("sound\\hot.lvl;hot1gcw") would read from the _lvl_pc\sound folder and not the _lvl_pc\fpm\sound folder. That's why I added the fpm\.
But you are not paying attention. ReadDataFile always reads from a base directory (wherever the relevant core.lvl file is). The .odf parameter "FirstPerson,"
by default, reads from the FPM folder.
You already know this because of what the first person sections already list. After all, how could
Code: Select all
SetClassProperty("cis_inf_rifleman1", "FirstPerson", "REP\reptroop;rep_1st_trooper")
possibly work, since the first person file isn't in the "REP" folder. Right?
A little context goes a long way.
That was boneheaded of me to suggest the double slash as necessary, though, since you're right, it is just a parameter in a callback - the .lua itself isn't reading it (although it will work that way, it's not necessary).
For your other problem, you can't just make up parameters like you did above. Both "WeaponName" and "WeaponName1" are valid parameters, which is why they both work. There is no such thing as "WeaponSectionBODY" as a parameter - read through fred's "ODF Parameters" doc.