PDA

View Full Version : How to make a "car" to heal?



STS_SolidSnake
Feb 6 2003, 09:26
How do i make a car have the ability to heal?

whats the cpp line?

thx

PicVert
Feb 6 2003, 09:30
you have to put that line in CfgVehicles :

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">   attendant = 1;[/QUOTE]<span id='postcolor'>

cya SolidSnake

STS_SolidSnake
Feb 6 2003, 09:59
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgVehicles
{

class All {};
class AllVehicles&#58; All {};
class Land&#58; AllVehicles {};
class LandVehicle&#58; Land {};
class Car&#58; LandVehicle {};
class Jeep&#58; Car {};
attendant = 1;[/QUOTE]<span id='postcolor'>

Thats what i did it still doesnt work http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/sad.gif

Rastavovich
Feb 6 2003, 10:11
of course that wont work.

First you have to define a own class, then you have to place the "attendant"-line in the class.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgVehicles
{
class All {};
class AllVehicles&#58; All {};
class Land&#58; AllVehicles {};
class LandVehicle&#58; Land {};
class Car&#58; LandVehicle {};
class Jeep&#58; Car {};
class STS_Jeep &#58; Jeep
{
       attendant = 1;
};
};[/QUOTE]<span id='postcolor'>