dam034 Posted October 3, 2017 Posted October 3, 2017 Dear users, I noticed when I drive a train ad I'm close to a level crossing, it starts to close too late, in fact if I drive in high speed, the train arrives there when the bars are still raised. I think in the game development there is a radius for each level crossing, and if in that radius there is a train, it starts closing. I want to increase that radius. How can I do? Thanks dam034 I'm developing a revolution for MTASA
Mr.Loki Posted October 4, 2017 Posted October 4, 2017 (edited) Without more info/code we can't help you... Edited October 4, 2017 by Mr.Loki [REL]Cinema Experience Beta 2.0 [TUT]Object offsets with OOP. [TUT] Adding a Discord bot to your server. Discord: Loki#7355
dam034 Posted October 5, 2017 Author Posted October 5, 2017 So, I did two screenshots: the first without train (link) the second with train (link) As you can see, if there isn't a train near the level crossing, it is open. If there is a train, it closes. I think in the game programming there is an action radius (number) for each level crossing, and if there is a train in that radius, the level crossing closes. Now I want to increase the number of that action radius. Is it possible? Thanks dam034 I'm developing a revolution for MTASA
lopezloo Posted October 5, 2017 Posted October 5, 2017 (edited) You need to recreate this object and controll it by yourself (you can use map editor to get exact position). However, even if you recreate it, GTA still tries to close/open it so you need update rotation every frame. removeWorldModel + createObject + onClientPreRender Edited October 5, 2017 by lopezloo tell Obbe it happened again
dam034 Posted October 5, 2017 Author Posted October 5, 2017 If it is so, I can place new level crossings where I want, and GTA will execute the open/close command? dam034 I'm developing a revolution for MTASA
Moderators IIYAMA Posted October 5, 2017 Moderators Posted October 5, 2017 That is right. (lots of work to make it perfect) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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