Overkillz Posted October 10, 2017 Share Posted October 10, 2017 (edited) Hello dear community, well, Im so dump right now and I have forgotten a new function which was added to MTA some few months ago. It was the possibility to keep the vehicle tail lights ON even if the time in game was too early. I have been several minutes looking for this function at the wiki, sadly, I couldn't find it. Here some screen shots (Open the spoiler) if you don't understand me. As you can see, on the first picture the car is stopped, but on the second one the car is stopping.Thanks for reading Spoiler Edited October 10, 2017 by Overkillz Link to comment
Overkillz Posted October 10, 2017 Author Share Posted October 10, 2017 I see, it work pretty good but, isnt there any other function that only modify tail lights ? Link to comment
Moderators IIYAMA Posted October 10, 2017 Moderators Share Posted October 10, 2017 There is a light element, but will probably only give partly the results you want. Please read the notes: Note: The direction of the light only has any effect if the light type is spot light. One light will only apply illumination effects to peds, players, wheels and number plates (like a emergency vehicle siren light does). Two or more lights will apply illumination effects to everything (excluding objects) that is in range of, at least, two of them. https://wiki.multitheftauto.com/wiki/CreateLight <light posX="" posY="" posZ="" type="" radius="" color="" dirX="" dirY="" dirZ="" shadows="" /> 2 Link to comment
Overkillz Posted October 10, 2017 Author Share Posted October 10, 2017 56 minutes ago, IIYAMA said: There is a light element, but will probably only give partly the results you want. Please read the notes: Note: The direction of the light only has any effect if the light type is spot light. One light will only apply illumination effects to peds, players, wheels and number plates (like a emergency vehicle siren light does). Two or more lights will apply illumination effects to everything (excluding objects) that is in range of, at least, two of them. https://wiki.multitheftauto.com/wiki/CreateLight <light posX="" posY="" posZ="" type="" radius="" color="" dirX="" dirY="" dirZ="" shadows="" /> Well, You gave me a great idea for other thing in a near future, however, this function didn't help me at all. Might I'm executing worngly the following function I tried to create a simple light on my vehicle position with a red colour, however, It didn't work. I tried to change the light type from 1-3 function createTheLight() local theVeh = getPedOccupiedVehicle(localPlayer) if theVeh then local x,y,z = getElementPosition( theVeh ) createLight(2,x,y,z,25,255,0,0,0,0,90,true) outputChatBox("Created Light") end end addCommandHandler("testlight",createTheLight) Link to comment
Overkillz Posted October 10, 2017 Author Share Posted October 10, 2017 Just now, #,+( _xiRoc[K]; > said: attachElements Im already aware about that. But first, I want to create a simple light with X size and X colour. I won't attach it to my vehicle. That is a simple thing to do and I will leave it to the end. Link to comment
Moderators IIYAMA Posted October 10, 2017 Moderators Share Posted October 10, 2017 Please read the > Note < again. It clearly says two lights for everything(except objects). And you can't attach them with the attachElements function, only with setElementPosition. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now