Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripting Problems (Getting Infantry Gender through scripts)
Scripting Problems [message #274226] Thu, 19 July 2007 10:16 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3812
Registered: July 2006
Location: USA
Karma:
General (3 Stars)
Okay, I have been trying to use the script function "Get_Sex" (which sends an A for male and a B for female) to try to make the script detect when it is a male or female, currently I can't get it to do anything, when ever I try making it something like:
char sex = Get_Sex(obj);
if (sex == "A")

And many other attempts with comma's and other stuff I get back an error that const char can not equal a char. Is there a way I could convert the letter A to a char? Or a better way to do the?


 
Read Message
Read Message
Read Message
Previous Topic: bot spawn error
Next Topic: FieldTS.lvl
Goto Forum:
  


Current Time: Sat Dec 21 03:45:16 MST 2024

Total time taken to generate the page: 0.01103 seconds