Sign in to follow this  
Salk

Transition Triggers

Recommended Posts

Hello!

I was wondering if there was a way to "disable" the transition triggers from an area and then re-enable them. DestroyObject() works but then it seems I cannot use CreateObject() to restore them.

I thought of creating a script to use OnEnter to call for the TransAbort but it doesn't seem to work either.

void main() {
    object oJuhani = GetObjectByTag("dan14_juhani");
    object oEntering = GetEnteringObject();
    if ((GetStandardFaction(oJuhani) == 1) && GetIsPC(oEntering)) {
    AssignCommand(GetNearestObjectByTag("k_trans_abort"),
                  ActionStartConversation(GetPartyMemberByIndex(0),
                                          "",
                                          FALSE,
                                          CONVERSATION_TYPE_CINEMATIC,
                                          TRUE,
                                          "",
                                          "",
                                          "",
                                          "",
                                          "",
                                          "",
                                          TRUE));
    }
}

 

Any advice?


Cheers!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this