Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool CheckPossible(GameObject *Caller)
- {
- if (!Caller->IsValid() || Caller->GetType() != ACTOR_VEHICLE)
- return false;
- Vehicle v(Caller);
- PersonList pl = v.GetPassengers();
- PersonList tl = v.GetTransports();
- // installiert
- /*if ((v.HasName("GTF")) && v.IsInstalled())
- return false;*/
- if (v.IsValid() && !v.IsDestroyed() /*&& pl.GetNumPersons() > 0*/ && tl.GetNumPersons() == 0)
- {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement