Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » (C++) float to GameObject
(C++) float to GameObject [message #330882] Sat, 17 May 2008 12:40 Go to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
How can i Convert float to GameObject? i need that for a new Mod im working on =))
Thanks
Re: (C++) float to GameObject [message #330900 is a reply to message #330882] Sat, 17 May 2008 15:04 Go to previous messageGo to next message
Sir Kane
Messages: 1701
Registered: March 2003
Location: Angerville
Karma: 0
General (1 Star)
What?

Proud N9500 and proud N6270 user. Creator of the IEE libraries (original bhs.dll) and the RB series software.
http://n00bstories.com/image.fetch.php?id=1189992501http://www.n00bstories.com/image.fetch.php?id=1257492907
Re: (C++) float to GameObject [message #330901 is a reply to message #330882] Sat, 17 May 2008 15:06 Go to previous messageGo to next message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma: 0
Colonel

Das ist nicht dein Ernst, oder?!

Re: (C++) float to GameObject [message #330903 is a reply to message #330882] Sat, 17 May 2008 15:23 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
He was trying to get a building's health.

GameObject *Find_Power_Plant(int Team); //finds the first powerplant for Team,0 = Nod,1 = GDI,2 = either
GameObject *Find_Refinery(int Team); //finds the first refinery for Team,0 = Nod,1 = GDI,2 = either
GameObject *Find_Repair_Bay(int Team); //finds the first repair bay for Team,0 = Nod,1 = GDI,2 = either
GameObject *Find_Soldier_Factory(int Team); //finds the first soldier factory for Team,0 = Nod,1 = GDI,2 = either
GameObject *Find_Airstrip(int Team); //finds the first airstrip for Team,0 = Nod,1 = GDI,2 = either
GameObject *Find_War_Factory(int Team); //finds the first war factory for Team,0 = Nod,1 = GDI,2 = either
GameObject *Find_Vehicle_Factory(int Team); //finds the first airstrip for Team,if none is found,finds the first war factory for Team,0 = Nod,1 = GDI,2 = either
GameObject *Find_Com_Center(int Team); //finds the first communications center for Team,0 = Nod,1 = GDI,2 = either
Re: (C++) float to GameObject [message #330907 is a reply to message #330882] Sat, 17 May 2008 15:33 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
float barhealth = Commands->Get_Health(Find_Soldier_Factory(1));
// I want to halve the barrack health
Commands->Set_Health((Find_Soldier_Factory(1)),(barhealth/2.0f));



Re: (C++) float to GameObject [message #330916 is a reply to message #330882] Sat, 17 May 2008 16:32 Go to previous message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
I dont really wanted to convert it, i wanted to combine it, anyways i got work what i wanted.
Previous Topic: Renegade Hud
Next Topic: Questions on scripting.
Goto Forum:
  


Current Time: Fri Jan 10 21:36:34 MST 2025

Total time taken to generate the page: 0.00763 seconds