Scripts / Entity movement

Author
Message
Gtox
3D Media Maker
9
Years of Service
User Offline
Joined: 5th Jun 2014
Location: South Africa
Posted: 8th Nov 2014 09:01
I'm trying to create a script that will cause an aircraft to fly from one side of the map to the other, and I've hit a couple of early stumbling blocks. The first is that the aircraft sits at ground level, no matter how high I placed it in the editor (when the script is set to default, it sits at the correct height, but the flight script causes it to drop), even with physics switched off. The second problem is that the aircraft only starts moving when you get within about 3000 units, and stops moving once it's gone beyond about 3000 units. How can I fix these issues?

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 8th Nov 2014 10:54
Right click it in the editor and turn it always on = yes, that will make the script run no matter how far away it is.
Inside the main script script call put GravityOff(e) which will
allow it to remain in the air (you may need to keep physics off too not 100% sure)

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 8th Nov 2014 11:00 Edited at: 8th Nov 2014 11:01
You're nearly there - do as smallg says (and physics can stay off/on if you use below tweaks) - I dropped the speed to 500





Gtox
3D Media Maker
9
Years of Service
User Offline
Joined: 5th Jun 2014
Location: South Africa
Posted: 8th Nov 2014 11:44
Thanks smallg & cybernescence - that's exactly what I needed (500 is bit slow, though). Now I'm going to have a crack at Tomjscotts Omegacore to see if I can get the sound to move with the aeroplane (and maybe the doppler effect).

Login to post a reply

Server time is: 2024-05-02 06:21:49
Your offset time is: 2024-05-02 06:21:49