ยท Josh Babcock <[EMAIL PROTECTED]> wrote: hi josh!
> Josh Babcock wrote: > >> # Set all the bomb triggers, and assign the proper weights for YASim. >> loadout = >> props.globals.getNode('/sim/weapons/loadout['~$loadout_index~']'); >> bombs = loadout.getChildren(); >> foreach (bomb, bombs) { >> dropped = bomb.getNode(dropped); it think it should be bomb.getNode('dropped'). >> dropped.setBoolValue(false); >> # A MIRACLE OCCURS >> } >> >> } >> > > Oh, and I have fixed the foreach typo, however I have still not figured > out the correct way to set the node 'dropped' :) > second point is, are there other child nodes than bomb nodes? then you should test if you have a bomb node before getting the dropped property. cu markus -- Markus Barenhoff - phone: +49-40-39991368 - cell: +49-173-7215776 Stellinger Chaussee 26c - D-22529 Hamburg - Germany - Earth url: http://www.alios.org/ - mail: [EMAIL PROTECTED] pgpkey: 0xAE7C7759 fp: 79 64 AA D9 B7 16 F5 06 6A 88 5F A9 4D 49 45 BB
pgpVqQ8tzhDhR.pgp
Description: PGP signature