Aller au contenu

Photo

Need a script


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

#1
Davir

Davir
  • Members
  • 37 messages
I need a script. to send PC to another area
Does anyone know

#2
_L_o_B_o_

_L_o_B_o_
  • Members
  • 117 messages
It depends on how do you need to do it. Give more details, please. Does the area transition happen during a conversation? After clicking a placeable?

#3
Davir

Davir
  • Members
  • 37 messages
I'll try a do a cutscene where a char talk about a race
So if one example is a dwarf so he then talk on dwarfs so
you are there where the dwarves lived
and so with human and elf
by using it in a conversation and use it here Plot
gen00pt_class_race_gend

#4
_L_o_B_o_

_L_o_B_o_
  • Members
  • 117 messages
Ok, then you should create a script with the following code and select it as the End Script of your cutscene.

Here is the code:

#include "utility_h"

void main()
{
   CS_CutsceneEnd();

   DoAreaTransition(#AreaTag#, #WaypointTag#);
}

Replace #AreaTag# with the tag of the target area. For example, "my_area". 
Replace #WaypointTag# with the tag of the target waypoint. That's the location where the PC will be placed in the target area. For example, "my_waypoint".

Modifié par _L_o_B_o_, 11 octobre 2010 - 05:49 .


#5
Davir

Davir
  • Members
  • 37 messages
Thanx for for the code