dam034 Posted October 3, 2017 Share 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 Link to comment
Mr.Loki Posted October 4, 2017 Share Posted October 4, 2017 (edited) Without more info/code we can't help you... Edited October 4, 2017 by Mr.Loki Link to comment
dam034 Posted October 5, 2017 Author Share 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 Link to comment
lopezloo Posted October 5, 2017 Share 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 Link to comment
dam034 Posted October 5, 2017 Author Share 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? Link to comment
Moderators IIYAMA Posted October 5, 2017 Moderators Share Posted October 5, 2017 That is right. (lots of work to make it perfect) 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