Vehicle Lights and FG
#1Is there any way to expose a vehicles' lights to FG ? I know there's a node called "light" under vehicle nodes, but it doesn't work (at least in 5.3).
Moderators: Cry-Nic, Community Volunteers
I found a partial solution - the "lights" node doesn't display anything in the "light type" field, just linked a SetString node to this input with the text "All" and it does the job; however, I was looking for more control over a certain light, have tried with "FindEntityByName" but couldn't make it work so far (and not very sure how the name should look like, probably something like: "Parent_Part/Light_LightName"??).
Code: Select all
<Graph Description="" Group="Vehicle">
<Nodes>
<Node Id="17" Class="entity:Light" pos="-234,288,0" EntityGUID="c388e69f-25c8-4f99-40bd-fad2d14a8616">
<Inputs entityId="0" Active="0" Disable="0" Enable="1"/>
</Node>
<Node Id="19" Class="entity:Light" pos="-234,18,0" EntityGUID="d2040171-42b9-fcf3-ceee-f6991c248877">
<Inputs entityId="0" Active="0" Disable="0" Enable="1"/>
</Node>
<Node Id="21" Class="entity:Light" pos="-234,108,0" EntityGUID="33cda75e-4cab-023f-bd4c-7845eaf6ef74">
<Inputs entityId="0" Active="0" Disable="0" Enable="1"/>
</Node>
<Node Id="23" Class="entity:Light" pos="-234,198,0" EntityGUID="b7c043e0-0420-4f55-8549-d57d800830f2">
<Inputs entityId="0" Active="0" Disable="0" Enable="1"/>
</Node>
<Node Id="25" Class="Debug:InputKey" pos="-918,126,0">
<Inputs entityId="0" Key="k" NonDevMode="0"/>
</Node>
<Node Id="27" Class="Logic:Sequentializer" pos="-666,144,0">
<Inputs Closed="0" Reverse="0"/>
</Node>
<Node Id="38" Class="Math:BooleanTo" pos="-486,144,0">
<Inputs />
</Node>
<Node Id="42" Name="Press_Key_to_Enable/Disable_Lights" Class="_comment" pos="-918,108,0"/>
</Nodes>
<Edges>
<Edge nodeIn="27" nodeOut="25" portIn="In" portOut="Pressed" enabled="1"/>
<Edge nodeIn="38" nodeOut="27" portIn="true" portOut="Out1" enabled="1"/>
<Edge nodeIn="38" nodeOut="27" portIn="false" portOut="Out2" enabled="1"/>
<Edge nodeIn="17" nodeOut="38" portIn="Active" portOut="out" enabled="1"/>
<Edge nodeIn="19" nodeOut="38" portIn="Active" portOut="out" enabled="1"/>
<Edge nodeIn="21" nodeOut="38" portIn="Active" portOut="out" enabled="1"/>
<Edge nodeIn="23" nodeOut="38" portIn="Active" portOut="out" enabled="1"/>
</Edges>
</Graph>
Select the Light by clicking on it, then in the flowgraph right-click followed by "Add selected entity"Hello, I have a problem with the car's projection lights, I don't know what I have to do to make it appear in the flow graph.
Users browsing this forum: No registered users and 1 guest