ambient life – Talk
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "<code>" to "<code style="display: block">") |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 17: | Line 17: | ||
Code used to test: | Code used to test: | ||
sideU0 = side u0; hint str sideU0; | 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 | |||
<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." | |||
To check if a unit is an animal: | |||
<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) |
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)