Originally created by: wlbr... (code.google.com)@cox.net
*What steps will reproduce the problem?*
1.Try using sim/time/sun-angle-rad as switch for animation of lighting
2.
3.
*What is the expected output? What do you see instead?*
It should be returning a value, don't think it is (in AI)
*Any output in the console (black window)?*
none
*What FlightGear version are you using (when using GIT version, please
mention date)?*2.8
*What operating system and graphics card?*Windows7 Nvidia GeForce GT240
*Please provide any additional information below or as attachment (Avoid
expiring external links, such as to imageshack/pastebin/...).*
View and moderate all "codetickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: wlbr... (code.google.com)@cox.net
Did another search and saw issue 165 (similar). My issue is ai.xml code to turn lights on in model aircraft in AI system. Had no effect, on or off. Verified lights did work with other methods.
Related
Tickets:
#165View and moderate all "codetickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: bre... (code.google.com)@gmail.com
The path "sim/time/sun-angle-rad" would be interpreted as a relative path (based on the aircraft's root property). You should use an absolute path:
/sim/time/sun-angle-rad
and things should work ok (note the difference with the leading "/").
Usually AI aircraft need to use relative paths, since an AI aircraft should not reference the main simulator aircraft's speed/orientation/etc, but it's own speed/orientation/etc. However, when you want to access global properties, not specific to the AI aircraft itself, you need to use absolute paths.
Status: Invalid
View and moderate all "codetickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: wlbr... (code.google.com)@cox.net
Right again, I verify absolute path works. Sorry for the mistake!