Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Action->Goto
Action->Goto [message #375264] Sat, 07 March 2009 06:03 Go to previous message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma:
General (2 Stars)

		if (Commands->Find_Object(FollowID))//w00t we found our hero to the rescue
		{
			GameObject *GotoObject = Commands->Find_Object(FollowID);
			ActionParamsStruct params;
			params.Set_Basic(this,100,100);
			params.Set_Goto_Following(GotoObject,1.0f,1.5f,true);//void Set_Goto_Following(GameObject *Target,float speed,float arrivedistance,bool following);
			Commands->Action_Goto(obj,params);
			Following = true;
			Commands->Start_Timer(obj,this,1.0f,789);//our hero is alive so we continue following
			Commands->Give_Money(Pokerguy,1.0f,0);
		}


Im using the above code to get a hostage bot follow players around but the script 'breaks' on doors.
The hostage won't follow players when they pass a door for example.
Is there any way this can be fixed?


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Remove secondary objectives from multiplayer practice?
Next Topic: Gmax is evil! Not even duck tape can fix it!
Goto Forum:
  


Current Time: Thu Jul 11 20:16:42 MST 2024

Total time taken to generate the page: 0.00946 seconds