Aller au contenu

Photo

Making a door interactive by plot flag?


2 réponses à ce sujet

#1
SilentCid

SilentCid
  • Members
  • 338 messages
How do you make a door from being interactive in till a quest has been accepted? I would assume a plot flag and some syntax which I not sure what. Any ideas?

#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
First, make sure the door is non-interactive and has a custom tag.

within the plot script:

case MY_PLOT_QUEST_ACCEPTED:
{
object oDoor = GetObjectByTag("my_door_tag");
SetObjectInteractive(oDoor, TRUE);
}

This only works if the door is in the same area as the quest accepted flag is set however. If it's not, you'll have to set up a script on the area load of the area script.

#include "plt_my_plot"
...

case EVENT_TYPE_AREALOAD_PRELOADEXIT:
{
if (WR_GetPlotFlag(PLT_MY_PLOT, MY_PLOT_QUEST_ACCEPTED))
{
object oDoor = GetObjectByTag("my_door_tag");
SetObjectInteractive(oDoor, TRUE);
}
}

Modifié par DavidSims, 09 décembre 2009 - 05:28 .


#3
SilentCid

SilentCid
  • Members
  • 338 messages
Thank you David for the help that works out nicely.