timmiej93 Posted August 24, 2014 Report Share Posted August 24, 2014 Hey guys,Quick question: How do I spawn a civilian vehicle, on a random spot, but not on a road, and make it join normal traffic? Tim Quote Link to comment Share on other sites More sharing options...
cops Posted August 24, 2014 Report Share Posted August 24, 2014 just like you do with the spawn points at the edge of the map, only then you place it somewhere in the map (Look at the manhattan mod, they have it too!) Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted August 24, 2014 Author Report Share Posted August 24, 2014 Can these spawn points be regulated by scripts too, or do they just spawn vehicles randomly? I need to spawn these vehicles on call. Quote Link to comment Share on other sites More sharing options...
bma Posted August 24, 2014 Report Share Posted August 24, 2014 Can these spawn points be regulated by scripts too, or do they just spawn vehicles randomly? I need to spawn these vehicles on call.In that case it is proberly easier to make them spawn in a virtuel object and then just give them the path they need to drive Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted August 24, 2014 Author Report Share Posted August 24, 2014 Does this also work when the spawn VO is not on the path?It's like 20 meters from the road. Would they find that themselves? Or would I need a VO to send them to first, like the ambulance patrol command uses? Quote Link to comment Share on other sites More sharing options...
bma Posted August 24, 2014 Report Share Posted August 24, 2014 You can get it to do both things Path(); Path(const Path& Obj_); Path(const Actor* Act_); ~Path(); virtual bool IsValid() const; void SetOnFinishDeleteObject( bool delete_); bool GetOnFinishDeleteObject() const; void SetPathType(PathType type_); PathType GetPathType() const; Vector GetStartPosition() const; float GetDistance(const Vector &Pos_) const; float GetPathSpeed(); int GetNumPoints(); Vector GetPoint(int index_); int GetPointID(int index_); Vector GetNearestPoint(const Vector &v_); int GetNearestPointIndex(const Vector &v_); Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted August 24, 2014 Author Report Share Posted August 24, 2014 Thank you, gonna test that as soon as I've got some other things fixed! Quote Link to comment Share on other sites More sharing options...