Skip to content

I don't get it...

I have a NPC I want to walk up to a PC, say something, laugh, take something, then walk away.

I am using x2_def_userdef to run the code in the End Combat Round Event section for the actions I want them to take.

After many hours of no success, I put all the actions in assign commands and the NPC did exactly what I wanted.

I thought AssignCommand was only needed if a script running on something external to the NPC needed to have the NPC do something. Since x2_def_userdef is called from the NPC's own OnUserDefined script handle I figured just putting Action commands in there directly would work.

Obviously I am wrong, but I don't get why.

Comments

  • FreshLemonBunFreshLemonBun Member Posts: 909
    Print out OBJECT_SELF and it's tag or name, that's usually a good way to find who owns the script.
    Terrorble
  • AncarionAncarion Member Posts: 155
    I'm glad it worked out for you. Unfortunately, I think there's too little information in your post to really be able to give you an idea of what might have happened to cause your initial method to fail.
Sign In or Register to comment.