Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » making turrets destroyable by team
Re: making turrets destroyable by team [message #485231 is a reply to message #485221] Sat, 11 January 2014 17:55 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
zunnie wrote on Sat, 11 January 2014 18:23

	if (Get_Object_Type(damager) == Get_Object_Type(obj))
	{
		if (damage > 0.0f)
		{
			Commands->Apply_Damage(obj, damage,"Explosive",damager);
		}
	}


Something like this would apply the damage of the shooter to the turret if the team were the same. This way you can team the turret to GDI but still damage it but it would still only attack Nod.

Just an idea :/


Pretty sure damage is calculated before it calls scripts so the value would be zero.... so that wouldn't work anyway.


http://steamsignature.com/card/1/76561197975867233.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: scripts question
Next Topic: Thank you Renegade
Goto Forum:
  


Current Time: Sun Dec 15 01:41:35 MST 2024

Total time taken to generate the page: 0.00646 seconds