![]() |
Photoning - Printable Version +- Limelight Forums (https://limelightgaming.net/forums) +-- Forum: Entertainment (https://limelightgaming.net/forums/forum-197.html) +--- Forum: Off-Topic (https://limelightgaming.net/forums/forum-208.html) +--- Thread: Photoning (/thread-14541.html) Pages:
1
2
|
RE: Photoning - Doctor Internet - Apr 24, 2017 Running Lights Start with setting up your table. It's like your EMV table from before. Code: local PI = {} PI.Meta It's the exact same as the meta for emergency lights. Here's an example for the Crown Victoria's tail light. Code: tail_light = { -- Set the name of the light. PI.Positions Again, the same as emergency lighting. Set the positions of your lights. An example, for the Crown Victoria's tail light. Code: [1] = {Vector(-31.8,-111.15,41.1), Angle(0,-20,-10), "tail_light"}, Breaking this down. Code: [lightIndex :: Integer] = {Position :: Vector, Rotation :: Angle, Light Meta :: String} PI.States This is the equivalent of the combination of EMV.Sections, EMV.Patterns and EMV.Sequences. There are 6 states. Headlights, Breaks, Blink_Left, Blink_Right, Reverse and Running. Headlights are not working, so I don't bother filling them in. Inside the brackets you fill in the lights and colours, similar to EMV.Sections. The blinkers toggle on and off, with a pattern similar to 1,1,1,0,0,0. Hazards are created by toggling both left and right blinkers. Here's an example from the Crown Victoria's lights. Code: PI.States = { Finally Fill all those in, then stick this at the end of your code. Depending on what you're doing, you'll generally do the first, and sometimes the second. Code: if Photon then If you're doing multiple vehicles with the same base model, you can set the Vehicle Library. An example from my Crown Victoria, inside the vehicle list. Code: IsEMV = true, However, if you're only doing one vehicle, you can also set it in the same file. An example from my Merc Sprinter. Code: IsEMV = true, Both methods work, so there is no "best practice". Do what's best for you. @Nebula. Sorry I posted it anyway. You posted about 20 seconds before I did. @Noble smells. :3 RE: Photoning - Nebula - Apr 24, 2017 @Doctor Internet Oh, many Thanks. I did not got the running lights to work (but I only tried 5 minutes because time reasons) and this explain quite some more stuff, so.. thank you ![]() (Do you also know how to add liveries?) RE: Photoning - Doctor Internet - Apr 24, 2017 Liveries For some reason, the livery code is messed up. It works, but is messed up. Firstly, you'll need to set your spawning skin. An example from my Sprinter. Code: EMV.Skin = "emvu_skins/merc_sprinter_lwb/livery_police_speed" In this case, materials/emvu_skins/merc_sprinter_lwb/livery_police_speed is a vmt, vtf pair, so it loads the material as a skin. You could also set the skin to one of the default skins like so. Code: EMV.Skin = 1 Next, liveries. For some reason, it was decided that you need categories, but they don't show up in the menu. An example from the Sprinter. Code: EMV.Liveries = { In this case, the liveries shown would be:
RE: Photoning - Nebula - Apr 29, 2017 @Doctor Internet I just noticed that i dont know what to enter there, so.. What does Photon wants to have there ? Quote:Code: |