Malxados Posted April 13, 2009 Share Posted April 13, 2009 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 Link to comment Share on other sites More sharing options...
Exile007 Posted April 14, 2009 Share Posted April 14, 2009 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 More sharing options...
Nirran Posted April 14, 2009 Share Posted April 14, 2009 this is what i did for a custom loot script if(GetRacialType(OBJECT_SELF) == RACIAL_TYPE_DROID) { do stuff; } Link to comment Share on other sites More sharing options...
Malxados Posted April 14, 2009 Author Share Posted April 14, 2009 Ahh....racial type....thaknks guys. I'll try it out soon (hopefully). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.