I am almost pulling my hair out.
I am playing around with an If-Then-Else condition for an hour now and cannot make it works. I made few test and I can’t even make the simplest one to work. (In a sqf file)
Entance1 being a building, if I do this it works correctly
_d = getdammage entrance1;
hint format ["%1",_d];
if (_d<1) then{hint "not dead"} else {titletext["Dead","Plain"]};
But if I do it this way (different indentation), it behaves really strangely (I receive both the hint and the title cut, meaning that both the If and the Else parts are executed.
_d = getdammage entrance1;
hint format ["%1",_d];
if (_d<1) then
{
hint "not dead"
}
else
{
titletext["Dead","Plain"]
};
I tried to put ; at the end of both the hint and the titletext lines …resulting in the same effect.
Am I stupid or I am missing something? I looked at many scripts without understanding what I am doing badly.
ps: I am using Arma Edit 1.3 as the editor
HOME
Reply With Quote
