PDA

View Full Version : Problem with a Script


harIII
10-23-2009, 03:34 PM
I need a script to make an npc start walking around randomly and copied this one from the tutorial about making npcs walk the waypoints and there is a syntax error at "}", can somebody please correct this.

void main()
{
AssignCommand(OBJECT_SELF,ActionRandomWalk())
}

DarthStoney
10-23-2009, 04:21 PM
I need a script to make an npc start walking around randomly and copied this one from the tutorial about making npcs walk the waypoints and there is a syntax error at "}", can somebody please correct this.

Just add ; to the end of assign command line :)
void main()
{
AssignCommand(OBJECT_SELF,ActionRandomWalk());
}

harIII
10-23-2009, 06:22 PM
Damn that makes me mad. That was something I should have seen.

Thanks Stoney