any ideas?
#2

Create an integer variable for each vehicle (in this case an array) - let's called it trailerId, and set it to the trailer's ID (vehicle id because trailers are vehicles) whenever someone attaches a trailer to their vehicles, then to INVALID_VEHICLE_ID when they detach it.
Create a reoccurring timer, that loops through vehicles and checks if their trailerId equals INVALID_VEHICLE_ID, if not, attach the trailer with that id if it's not attached already.
Reply


Messages In This Thread
any ideas? - by PepsiCola23 - 08.02.2018, 22:12
Re: any ideas? - by Eoussama - 08.02.2018, 22:42
Re: any ideas? - by PepsiCola23 - 09.02.2018, 08:41
Re: any ideas? - by PgMNA - 09.02.2018, 11:45

Forum Jump:


Users browsing this thread: 1 Guest(s)