Aller au contenu

Photo

Move player to waypoint after cutscene


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Arius23

Arius23
  • Members
  • 345 messages
 I just need a simple script that moves the player to a waypoint after a cutscene. Thanks!

#2
Challseus

Challseus
  • Members
  • 1 032 messages
This is just really simple, and you probably will want to add on to it, but:

#include "utility_h"
void main()
{
    UT_LocalJump(GetHero(), "waypoint_tag");     
}

Whatever you name this script, make sure that you select it as the "End Script" in the cutscene property section. Conversely, you could include it in a plot file/script, and have said plot/script called at the end of the cutscene, by passing it in as a parameter when starting the cutscene.

Hope this helps.

#3
Arius23

Arius23
  • Members
  • 345 messages
Thank you!