Jump to content

Home

[TSL]Script check for droid/robot


Malxados

Recommended Posts

I was hoping to edit my script so that it should do something only if the object is a droid/robot, but I wasn't sure how to make it check that.

 

Thanks,

Malxados

 

Something like this would work if it was an action script or something.

 

void main() {

object oDroid=GetObjectByTag("TAG_NAME_HERE");

if(GetRacialType(oDroid) == 5) {

		//Is a droid!  Do whatever you want here!
	}
}

 

or if it was checking for dialog...

 

int StartingConditional() {

 

object oDroid=GetObjectByTag("TAG_NAME_HERE");

 

if(GetRacialType(oDroid) == 5) {

return TRUE;

}

return FALSE;

}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...