Re: Vehicle Lights and FG

#2
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"??).
Adrian Nen
visual artist
https://www.artstation.com/adriannen

Re: Vehicle Lights and FG

#3
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"??).



Why not link 4x Legacy Entity Lights -> Light to the vehicle?
Image
Image
Image

2x normal lights bulb size 1.13 and radius the same and put them exactly where the lights of the vehicles are.
2x projector lights, ( I tested mine with texture textures/lights/generic/rectangle_half_050.dds Radius 30, Diffuse 60, cast shadow low spec)

Image


Flowgraph:
Copy paste with CTRL+C CTRL+V directly into your flowgraph

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>
If you need any more control then this node is for you:
Entity:PropertySet
Image

Who is online

Users browsing this forum: No registered users and 0 guests