Quantcast

Jump to content

» «
Photo

Check amount of seats in car

5 replies to this topic
Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#1

Posted 24 June 2014 - 01:28 PM

So i was wondering if it is possible to check the amount of seats in the current car? Because that would spare me some time :)


Jitnaught
  • Jitnaught

    ✰✰✰✰✰✰

  • Members
  • Joined: 24 Aug 2013
  • United-States

#2

Posted 24 June 2014 - 01:34 PM

So i was wondering if it is possible to check the amount of seats in the current car? Because that would spare me some time :)

 

There is Vehicle.PassengerSeats, which is an integer, so I'm guessing it tells you how many passenger seats there are. So just add 1 to the amount of passenger seats (the 1 is the driver seat), then you'd get the amount of seats total in the vehicle.

  • Wiebrendh likes this

Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#3

Posted 24 June 2014 - 02:04 PM

 

So i was wondering if it is possible to check the amount of seats in the current car? Because that would spare me some time :)

 

There is Vehicle.PassengerSeats, which is an integer, so I'm guessing it tells you how many passenger seats there are. So just add 1 to the amount of passenger seats (the 1 is the driver seat), then you'd get the amount of seats total in the vehicle.

 

 

Thanks, will take a look at this


LordOfTheBongs
  • LordOfTheBongs

    Deceased

  • Members
  • Joined: 21 Sep 2013
  • None

#4

Posted 24 June 2014 - 02:07 PM

yeah if passenger seats is 1 then u have 2 seats... just add 1 to the return value to count the driver seat as well

  • Wiebrendh likes this

Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#5

Posted 24 June 2014 - 02:24 PM

Thanks guys!


Jitnaught
  • Jitnaught

    ✰✰✰✰✰✰

  • Members
  • Joined: 24 Aug 2013
  • United-States

#6

Posted 24 June 2014 - 02:35 PM

No problem ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users