I need a script. to send PC to another area
Does anyone know
Need a script
Débuté par
Davir
, oct. 10 2010 04:26
#1
Posté 10 octobre 2010 - 04:26
#2
Posté 10 octobre 2010 - 06:36
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
Posté 11 octobre 2010 - 02:53
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
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
Posté 11 octobre 2010 - 05:45
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:
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".
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
Posté 11 octobre 2010 - 08:20
Thanx for for the code





Retour en haut






