Canderis Posted February 23, 2009 Share Posted February 23, 2009 Im trying to make this script and Im getting an error. void main () object oNPC = GetObjectByTag("Tag"); AssignCommand (oNPC, ChangeObjectAppearance ( object oObjectToChange, int 516 ); Any ideas? Link to comment Share on other sites More sharing options...
tk102 Posted February 24, 2009 Share Posted February 24, 2009 A couple things here. You need opening an opening brace { after the void main() and a closing brace } at the end of the script. Keep in mind that when using GetObjectByTag you will need to change "Tag" to the actual Tag string specified in the .utc file of the NPC. You will need a similar line to declare the oObjectToChange object. You don't need the "int" before 516. ChangeObjectAppearance doesn't need to be embedded within an AssignCommand function. You can call it directly instead. example: void main () { object oObjectToChange = GetObjectByTag("carth"); ChangeObjectAppearance(oObjectToChange, 516); } Link to comment Share on other sites More sharing options...
Canderis Posted February 24, 2009 Author Share Posted February 24, 2009 Thanks Tk, it worked Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.