Hello all, real quick config question here.
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgWeapons
{
class Default {};
class CarHorn: Default {};
class SportCarHorn: CarHorn {};
class NewHorn: SportCarHorn
{
displayName="Scream";
drySound[]={"\scripts\sound.og g",30.0,1};
condition = "player in this && alive this";
statement = "[this] exec ""\scripts\script.sqs"" 4;;
};
};[/QUOTE]
Could someone explain why that script \scripts\script.sqs isnt being activated even tho the condition is being met?
I just need a script to be activated when that NewHorn weapon is used in a vehicle.
Also, why can I see "blinking = true" in some BI made scripts, but when I put it into my own light class or reflector class, it does nothing?
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class Reflectors {
class Left {
color[] = {0.1, 0.1, 1, 1};
ambient[] = {0.5, 0.5, 0.5, 1};
position = "konec L svetla";
direction = "konec L svetla";
hitpoint = "L svetlo";
selection = "L svetlo";
size = 0.2;
brightness = 0.25;
blinking = true;
};
[/QUOTE]
HOME 
Reply With Quote


