Jump to content

Home

Syntax error


Canderis

Recommended Posts

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

Archived

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

×
×
  • Create New...