Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. bool CheckPossible(GameObject *Caller)
  2. {
  3. if (!Caller->IsValid() || Caller->GetType() != ACTOR_VEHICLE)
  4. return false;
  5.  
  6. Vehicle v(Caller);
  7. PersonList pl = v.GetPassengers();
  8. PersonList tl = v.GetTransports();
  9.  
  10. // installiert
  11. /*if ((v.HasName("GTF")) && v.IsInstalled())
  12. return false;*/
  13.  
  14. if (v.IsValid() && !v.IsDestroyed() /*&& pl.GetNumPersons() > 0*/ && tl.GetNumPersons() == 0)
  15. {
  16. return true;
  17. }
  18.  
  19. return false;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement