Everything inside quote is not evaluated, else very simple replacement using "<>".
not evaluated? you mean in cmd, string or generally expression are not evaluated when injected?
It is more understandable to use math.
it is more readable but unlike mn_modify you cannot use it with cmd, so like in the example before you get additional 2 lines to clutter the screen.
Thing like that should work. It can exists some case work it dont work, but in this case, we must fix it. Only rememeber to delete cvar when you no more need it, cause it is global values.
interesting, any chance i can create nodes this way as well? maybe with abstractnode createChild method? i tried looking into it but coldnt find any documentation on how to use it...
the reason i want this is that yesterday i was dumb founded by the amount of manual data entry i has to do and would have to do again, for every ;ittle fix.
for a team of 8, i got: 8 head nodes, 8 models nodes, 3*8 bar nodes, 8 name nodes etc all of them with at least 5 properties, its ammounts to a shit load of lines, and its only 8!
i was thinking on something along those lines:
confunc hudenable
{
*cvar:team_size = <1>
*cvar:position = 0
*cvar:i = 1
while ( *cvar:i < *cvar:team_size ){
call *node:root.team@createChild( ??? model head<*cvar:i> )
*node:root.team.head<*cvar:i>@src = *cvar:mn_head<*cvar:i>
*node:root.team.head<*cvar:i>@angles = "15 60 100"
*node:root.team.head<*cvar:i>@autoscale = true
*cvar:position = * 200 + (*cvar:i * 60 )
*node:root.team.head<*cvar:i>@pos = "<*cvar:position> 20"
*node:root.team.head<*cvar:i>@size = "50 78"
*node:root.team.head<*cvar:i>@ghost = true
same with the rest bars, strings etc nodes...
call *node:root.team@createChild ??? image bar_teambox<*cvar:i>
*node:root.team.bar_teambox<*cvar:i>@src
*cvar:i++
}
clean
}
is it possible? and is there some kind of documentation(or c declarations) on createChild and the like ?
About "displayammoofweapon", yes, it only work with "baseinventory". The "baseinventory" node display all items from a base in a scrollable container. It is not created for soldiers. To display ammo, we must use a "model" or an "item" node, but it also need to update the .c code somewhere, like we do it with soldier weapon. If it is need, i can do it.
my best guess will be to add another container nodes for L/R ammo?
i mean there is already containers for: extension, right,left,backpack,belt,holster,headgear,armour
why not for right_ammo, left_ammo, no?