I just need a simple script that moves the player to a waypoint after a cutscene. Thanks!
Move player to waypoint after cutscene
Débuté par
Arius23
, mars 28 2010 01:25
#1
Posté 28 mars 2010 - 01:25
#2
Posté 28 mars 2010 - 03:52
This is just really simple, and you probably will want to add on to it, but:
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.
#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
Posté 28 mars 2010 - 03:58
Thank you!





Retour en haut







