Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » script question (script question)
Re: script question [message #302239 is a reply to message #302180] Mon, 10 December 2007 07:56 Go to previous messageGo to previous message
Genesis2001
Messages: 1397
Registered: August 2006
Karma:
General (1 Star)
The closest one I can think of is the Damaged() function..

(.h file)
class some_Class : public ScriptImpClass {
   void Created(GameObject *obj);
   void Damaged(GameObject *shooter, float damage, GameObject *obj); // I forget the other param :P
};



(.cpp file)

void some_Class::Damaged(GameObject *shooter, float damage, GameObject *obj)
{
  // code here.
}



I don't know if you can find out what weapon the person is hold when they fired those shots, but I believe you'd use the Damaged function above ^^


~MathK1LL
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: HUD textures
Next Topic: Scripts.dll
Goto Forum:
  


Current Time: Sat Dec 14 07:45:09 MST 2024

Total time taken to generate the page: 0.00671 seconds