Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [script]Base power crate function
Re: Base power crate function [message #301168 is a reply to message #301009] Wed, 05 December 2007 08:15 Go to previous messageGo to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3811
Registered: July 2006
Location: USA
Karma:
General (3 Stars)
MathK1LL wrote on Tue, 04 December 2007 14:06

You could also mix it up a bit an have it randomly turn off power to EITHER your base or your opponent's base. Wink

int Team = Get_Object_Type(sender);



Change to:

float Team = Commands->Get_Random(-1,2);



Note that I'm not entirely sure how to use the Get_Random() function so someone like reborn will have to correct me if I'm wrong on my params ^,^


~MathK1LL

-2 = civilian
-1 = mutant
0 = nod
1 = gdi
2 = renegade


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [script]Bot paratroopers function
Next Topic: 2 new skin releases
Goto Forum:
  


Current Time: Wed Dec 04 17:21:09 MST 2024

Total time taken to generate the page: 0.00788 seconds