Is it possible to make an NPC stay seated during a conversation? I can make a placeable with the NPC "mounted" to it, but its much better if I can use an actual creature for this sequence as the conversation could lead to a fight and its a lot cleaner if the creature just gets up and attacks.
Make an NPC stay seated during conversation - Can it be done?
Débuté par
Pstemarie
, juil. 04 2014 09:07
#1
Posté 04 juillet 2014 - 09:07
- WhiteTiger aime ceci
#2
Posté 04 juillet 2014 - 10:20
Yep. You give them a script in their "OnSpawn" event to make them sit and then in the conversation on the very first line in the "ActionsTaken" tab you basically give them the same script. This just requires that they have at least a one line conversation. Example script:
void main()
{
string sChair = GetLocalString(OBJECT_SELF, "MY_CHAIR");
object oChair = GetObjectByTag(sChair);
if (GetIsObjectValid(oChair))
{
ClearAllActions();
ActionSit(oChair);
}
}
- Pstemarie, Kato - et WhiteTiger aiment ceci
#3
Posté 04 juillet 2014 - 11:42
Worked like a charm.





Retour en haut






