* Melchior FRANZ -- Saturday 08 December 2007:
> it was time to add some generic properties for "internal communication".

It's probably also time to remind people again of the possibility to
add Nasal code to model (animation) XML files. This is then only
run when the model is used as as a static scenery model or an MP
model, but not for the instance that you are actively flying on your
machine. Such code can evaluate generic properties and modify them,
and/or move them where they belong. In the MP case, cmdarg() can be
used to access the model's node under /ai/models/. Example:

  <nasal>
      <load>print("I was just loaded under ", cmdarg().getPath())</load>
      <unload>print("Good Bye says ", cmdarg().getPath())</unload>
  </nasal>

See $FG_ROOT/Aircraft/Models/bo105.xml for a real world example.

m.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to