ambient life – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " (={2,})([^ = ])(.*)([^ = ])(={2,}) * " to " $1 $2$3$4 $5 ")
m (Text replacement - "<code>" to "<code style="display: block">")
 
Line 24: Line 24:
The example given on the main page
The example given on the main page


<code>?((side _unit)=="AMBIENT LIFE") : hint "This is an animal !";</code>
<code style="display: block">?((side _unit)=="AMBIENT LIFE") : hint "This is an animal !";</code>


simply does not work. It results in "generic error in expression."
simply does not work. It results in "generic error in expression."
Line 30: Line 30:
To check if a unit is an animal:
To check if a unit is an animal:


<code>_unit isKindOf "ANIMAL"</code>
<code style="display: block">_unit isKindOf "ANIMAL"</code>


I honestly think this page should be deleted or significantly modified. [[User:RKurtzDmitriyev|RKurtzDmitriyev]] 00:09, 1 February 2011 (CET)
I honestly think this page should be deleted or significantly modified. [[User:RKurtzDmitriyev|RKurtzDmitriyev]] 00:09, 1 February 2011 (CET)

Latest revision as of 11:53, 11 January 2023

Is ambient life actually a side? In my testing, animals placed on the ambient life side are actually civilians. --Ceeeb 06:33, 22 October 2009 (CEST)

Can a mod please delete this article, I can't see any evidence of such data type or command --Ceeeb 14:48, 24 October 2009 (CEST)

--tom_48_97 12:36, 8 September 2010 (CEST) Don't know how it's coded (not searched in fact), but when you add an animal on the editor, the code is as follow:

class Item0
{ 
	position[]={8060.105,296.04001,1883.0215};
	special="NONE";
	id=1;
	side="AMBIENT LIFE";
	vehicle="Sheep01_EP1";
	skill=0.60000002;
	text="lool";
};

And when you test the side in game, it returns civ Code used to test: sideU0 = side u0; hint str sideU0;

Command Does Not Exist

Yes, the "side" field in mission.sqm says "ambient life," but this page gives the misleading impression that AMBIENT LIFE is a variable that will be recognized by the scripting language. It is not, as far as I can tell.

The example given on the main page

?((side _unit)=="AMBIENT LIFE") : hint "This is an animal !";

simply does not work. It results in "generic error in expression."

To check if a unit is an animal:

_unit isKindOf "ANIMAL"

I honestly think this page should be deleted or significantly modified. RKurtzDmitriyev 00:09, 1 February 2011 (CET)