Scripts / A little help with my new Gcar script please

Author
Message
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 2nd Jun 2017 19:14
Hi guys im writing this script to give a kind of coruscant effect to Gcity whereas the cars fly overhead out of sight and then back again to give the effect of constant moving traffic can anyone see where im going wrong here please

Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 2nd Jun 2017 19:34
This has captured my interest. I wanted to do cars driving by in the background by animating a car moving a big distance, and simply having that animation play via script but that didn't seem to work when I tried it.
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 2nd Jun 2017 19:42 Edited at: 2nd Jun 2017 20:09
I can get it to work using Gtox's soar script Bugsy but obviously that doesn't get them to return i also have a aircraft_flight script that smallg did which because of the distance check you need to be within distance and they take a while to return this one i wanted to keep short and sweet as there are alot of cars to give that traffic effect so basically forward do a 360 and travel back i can work out the distances but this doesnt seem to work at all im just checking the EOF''s but GG didnt kick off so i presume they are correct e.g this is using Gtox's soaring script adapted for the vehicles but they dont return to give the constant vehicle effect, i suppose i could add alot more but im unsure on the FPS hit

Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 2nd Jun 2017 20:14 Edited at: 2nd Jun 2017 21:59
you would need to do a check for when to turn around (so after a set time or distance)
also rotating by 360 = a full circle, think you mean 180.
and added a bit more random in their settings so they wont all be the same.
untested but should work
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 2nd Jun 2017 20:41 Edited at: 2nd Jun 2017 20:54
yeah spotted that smallg do'h 360 lol oops but they still didnt come back when i changed it to 180 thanks m8 will try the new script
the one i wrote they just dont move at all just tested the edited script.
Edit: said it needed an extra EOF but they still stand still doing nothing? they are all set correctly and work with the other scripts :/
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 2nd Jun 2017 21:59
fixed and working now, i put the moveforward in the wrong place
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 2nd Jun 2017 23:48
ok m8 thanks again
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Login to post a reply

Server time is: 2024-12-23 05:54:45
Your offset time is: 2024-12-23 05:54:45