Jump to content

Home

OnEnter Script not working


Scorge

Recommended Posts

Ok, so I have a script that starts a conversation when you enter into the module, I opened the .are file, and change the OnEnter script to the name of my script and then i save it. When I test the module to see if it works, nothing happens. Can someone help me with this? I made sure I got the character tag a name right and everything right, It actually worked before but now it doesnt.

Link to comment
Share on other sites

Well, the way I'd do it is the swap the objects:

 

void main() {

object oNPC=GetObjectByTag("p_quatar01");

ActionDoCommand(SetCommandable(TRUE,oNPC));
AssignCommand (GetFirstPC(), ActionStartConversation(oNPC));     

}

 

It makes more sense to me, the way it is now. Though there might be a problem to trigger the script in the first place...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...