ambient life – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Reverted edits by Heecf..... (talk) to last revision by RKurtzDmitriyev)
m (Text replacement - " (={2,})([^ = ])(.*)([^ = ])(={2,}) * " to " $1 $2$3$4 $5 ")
Line 18: Line 18:
sideU0 = side u0; hint str sideU0;
sideU0 = side u0; hint str sideU0;


==Command Does Not Exist==
== 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.
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.

Revision as of 19:22, 31 January 2021

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)