Aller au contenu

Photo

UT_TeamMove


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

#1
Tjonno

Tjonno
  • Members
  • 6 messages
Hi! I've been trying to use the ut_teammove command but I can't get it done. Can someone help me with this?
I've found this code on the wiki:
void UT_TeamJump(int nTeamID,string sTagDestination = "",int bRun = FALSE,float fRange = 0.0,int bNewHome = FALSE);

 What is nTeamID? Should I enter the team number or...?
Thanks. 

#2
TimelordDC

TimelordDC
  • Members
  • 923 messages
Yes, that is the team number.

#3
Tjonno

Tjonno
  • Members
  • 6 messages
But still it doesn't work. Am I missing something.

#4
TimelordDC

TimelordDC
  • Members
  • 923 messages
It would help if you posted your code.

#5
Tjonno

Tjonno
  • Members
  • 6 messages
#include "utility_h"
void UT_TeamJump(
int nTeamID,15string sTagDestination = "napad",int bRun = TRUE,float fRange = 0.0,int bNewHome = FALSE);

Modifié par Tjonno, 07 janvier 2011 - 04:37 .


#6
Tjonno

Tjonno
  • Members
  • 6 messages
Ah, the code breaks when I add it.
I added the waypoint and team number but it still isn't working.
Thanks for bothering. :)

Modifié par Tjonno, 07 janvier 2011 - 04:55 .


#7
Tjonno

Tjonno
  • Members
  • 6 messages
Timelord, did you manage to find something?

#8
TimelordDC

TimelordDC
  • Members
  • 923 messages
You should replace the variables with the actual values in your function call.



#include "utility_h"

UT_TeamJump(15, "napad", TRUE, 0.0, FALSE);



You cannot have this as a stand-alone script either. It should be part of some other script that gets called by the event you are trying to put this in.

I suggest taking a look at some of the Bioware scripts first to understand the structure and usage and get a grasp on the events and which scripts handle which events (the core scripts in the toolset should help you with this last bit)

#9
Tjonno

Tjonno
  • Members
  • 6 messages
Ok, get it. Still I want this script to trigger in a dialogue line. Thanks, scripting is confusing but I'm getting the hand of it.

#10
TimelordDC

TimelordDC
  • Members
  • 923 messages
If it is called in a dialogue, it should work as a standalone script.