Aller au contenu

Photo

Trouble with script


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Tiberium_79

Tiberium_79
  • Members
  • 2 messages
 Hi all!
Now I'm trying to create my first mod, which includes several cutscenes and dialogues. After ending of one cutscene necessary that NPS moved to another point in the same room. I insert this script in the end of cutscene, but nothing happens. What am I doing wrong in this script?

#include "utility_h"#include "wrappers_h"
void main(){object oNpc = GetObjectByTag("hall_manager");vector vLocation = Vector(-12.5079f, -2.80868f, 0.40071f);
if   (IsObjectValid(GetObjectByTag("hall_manager")) == TRUE){SetPosition(oNpc, vLocation, FALSE);}}
I added this NPC to location in origin campaign with PRCSCR system and can not think of another way to move NPC after the cutscene.

#2
MerAnne

MerAnne
  • Members
  • 1 157 messages
JumpToLocation (you'll have to check the syntax) would be my suggestion. It also depends on whether you are in the OC or entirely within your own area so that this script fires at the correct time.