Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Simple fix for a simple script?

Based on a vault tutorial, I wrote this script to make a farmer NPC walk to one waypoint, act like she's planting something, then walk to the second waypoint and do the same...over and over. It compiles ok but she hardly ever does the animation. I think I must be missing a command for the que or something?

void main()
{
{ object oTarget = GetNearestObjectByTag("WP_WPLANTER1_01");
ActionMoveToObject(oTarget); ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW, 1.0, 2.0);
}
{ object oTarget = GetNearestObjectByTag("WP_WPLANTER1_02");
ActionMoveToObject(oTarget); ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW, 1.0, 2.0);
}
}

Comments

Sign In or Register to comment.