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.

NPC Walking Around K1 and Computer

Page: 1 of 1
 HK-42
12-19-2008, 2:55 PM
#1
How can I make NPC walk around, like on the Korriban Module(in K1). I know there was a script to make them walk and then disappears but is there one to make them walk around. Say in a loop, walk, stop, walk, stop, walk......

Thanks

Also How do you make them look like they are on a terminal?
 Canderis
12-19-2008, 6:36 PM
#2
Well If you want your npc's to randomly walk use this script:
void main()
{
AssignCommand(OBJECT_SELF,ActionRandomWalk());
}
To make a npc look like he's working a computer you spawn him facing the comp and attach a script like this to him:
void PlayAnimation(int nAnimation, float fSpeed=1.0, float fSeconds=-1.0);


//where int is at replace with value of anim in animations.2da
NOTE: You attach thease both to their onHeartbeat script slot.
 HK-42
12-19-2008, 6:55 PM
#3
Well If you want your npc's to randomly walk use this script:
void main()
{
AssignCommand(OBJECT_SELF,ActionRandomWalk());
}

Thanks I'll spawn them right now! I thought it would have something to do with the waypoint files(.UTW)

To make a npc look like he's working a computer you spawn him facing the comp and attach a script like this to him:
void PlayAnimation(int nAnimation, float fSpeed=1.0, float fSeconds=-1.0);


//where int is at replace with value of anim in animations.2da
NOTE: You attach thease both to their onHeartbeat script slot.

Thanks, I already had him spawned.
Page: 1 of 1