Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: Slav on March 10, 2011, 06:30:56 PM
-
Hello. Language syntax and engine question.
If you dynamically create entity and apply it's name, for example, "cheese" and then (at some other place within code) compare it's name with "cheeseEntity" - will such comparison be passed? Must they be evaluated as identical?
-
you have to use
if (Entity.Name =="cheese") .... ;
-
I am not writing any scripts - I am just porting already written code to Flash - so must I evaluate "cheese" and "cheeseEntity" as identical?
And if yes - so is it only for native objects of type "Entity"?
-
There's no "Entity" suffix. Not sure what gave you the idea.