Thessir
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Mounted character can pass in any location.

Go down

Mounted character can pass in any location. Empty Mounted character can pass in any location.

Post by void Sat Aug 08, 2015 7:27 am

Mounted character can pass in any location.
Mounted character can pass in any location. Mounte11

Need to insert in onClick and onEnter of transition areas and OnAreaTransitionClick of door something like this:

Code:
void main() {
    object oPC = GetEnteringObject();
    object oTarget = GetTransitionTarget( OBJECT_SELF );
    if( isMounted(oPC) && noHorses(oTarget) ) {
        // cancel transition
        FloatingTextStringOnCreature( "Dismount please", oPC, FALSE );
    } else {
        // alolow transition
        DelayCommand( 0.0, AssignCommand( oPC, ClearAllActions() ) );
        DelayCommand( 0.1, AssignCommand( oPC, JumpToObject(oTarget) ) );
    }
}
void
void

Alignment : Neutral Good
Posts : 13
Join date : 2015-08-08
Location : 51 RUS

Character sheet
Name: Elara Dorne
Gender: Female Female
Race: Human

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum