Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Problem with a Script

Page: 1 of 1
 harIII
10-23-2009, 3:34 PM
#1
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, 4:21 PM
#2
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, 6:22 PM
#3
Damn that makes me mad. That was something I should have seen.

Thanks Stoney
Page: 1 of 1