Jump to content

Home

Scripting question


TheProphet

Recommended Posts

Hey everyone,

 

I am having a problem, I have made a script for the ebon hawk module that makes a dialog fire when it starts. I put the script on the onEnter struct of the .are file. And the tag for the character as well as the dlg name in the script match the only thing i am doing differently is the npc that is supposed to speak the dialog comes in with the player from another module, but has the tag im looking for. Shouldnt he say the dialog when the player enters? Or should i put it on the OnHearbeat.

Link to comment
Share on other sites

I am having a problem, I have made a script for the ebon hawk module that makes a dialog fire when it starts. I put the script on the onEnter struct of the .are file. And the tag for the character as well as the dlg name in the script match the only thing i am doing differently is the npc that is supposed to speak the dialog comes in with the player from another module, but has the tag im looking for. Shouldnt he say the dialog when the player enters? Or should i put it on the OnHearbeat.

 

Don't know if this is the problem in your case, but anything that interacts with the player character in an OnEnter script should be delayed by about a second or so to allow the player object time to properly spawn in the area. I've noticed that strange things can happen if you don't do this.

 

Also note that the OnEnter script does not only fire when the player character is spawned into the area, but any time any creature is spawned into the arena. Thus if you haven't blocked out the script so it only does things if it's the player that enters, chances are that your code has already been triggered before the player has entered the area when one of the pre-placed NPCs (if any) are spawned.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...