Other great resources: Official JS API docs, Scripting Forum
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 8 Next »
var gameObj = droidFromId( id, player );
If the object is found, it's associated game object is returned.
Despite the name of the function, droidFromId() was capable of getting any type of game object, including structures and features.
var obj; try { obj = droidFromId( 63, me ); // do stuff with obj that was found } catch(e) { // object not found }
Requires:
Later versions:
Jump to:
Related articles: