how can i change a module script when making a character enter an area?
sarevok57
Member Posts: 6,057
so what i want to do is, when a character enters an area ( presumably the "last boss" area ) i need the module properties on character death script to be changed
how i have the on character death script to work is that whenever your character dies, they just get resurrected and teleported back to a main area, which works flawlessly until the last area
is there a way to perhaps put in area properties a script that basically goes;
when char enters area, change module on death script to "this script" instead
thanks
how i have the on character death script to work is that whenever your character dies, they just get resurrected and teleported back to a main area, which works flawlessly until the last area
is there a way to perhaps put in area properties a script that basically goes;
when char enters area, change module on death script to "this script" instead
thanks
0
Comments
#include "x3_inc_horse" void main() { object oPlayer = GetLastPlayerDied(); string sArea = GetTag(GetArea(oPlayer)); if (sArea == "TagOfAreaToCheck") { //Either just put whatever you want to happen here instead of the regular //death stuff or if you want to run a specific script then: //ExecuteScript("custom_on_death", oPlayer); return;//End the OnPlayerDeath script here so nothing below this happens } }