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
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: All {};
class Land: AllVehicles {};
class LandVehicle: Land {};
class Car: LandVehicle {};
class Jeep: 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: All {};
class Land: AllVehicles {};
class LandVehicle: Land {};
class Car: LandVehicle {};
class Jeep: Car {};
class STS_Jeep : Jeep
{
attendant = 1;
};
};[/QUOTE]<span id='postcolor'>
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.