Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » JFW_Grant_Key_Zone_Entry
Re: JFW_Grant_Key_Zone_Entry [message #487682 is a reply to message #487681] Fri, 23 May 2014 06:28 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3812
Registered: July 2006
Location: USA
Karma:
General (3 Stars)
Script is pretty straight forward:
void JFW_Grant_Key_Zone_Entry::Entered(GameObject *obj,GameObject *enterer)
{
	if (CheckPlayerType(enterer,Get_Int_Parameter("Player_Type")))// If the object player type matches the int value player type 0 is returned, 2 always returns 0, and 3 only returns 1 if it is a non-player that entered the zone.
		return;
	Commands->Grant_Key(enterer,Get_Int_Parameter("Key"),true);
}


I suggest you spawn Nod above the script zone so they fall into it (I've had issues in the past with it not picking players up if they spawn inside the script zone instead of entering it). If nothing else just grant them a keycard powerup on spawn instead.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bake light in renegade?
Next Topic: Base defence weapon modding
Goto Forum:
  


Current Time: Wed Dec 18 12:18:57 MST 2024

Total time taken to generate the page: 0.01388 seconds