The PCs mess up when they enter the new module mounted, hence, I'd want to dismount them first.
Any idea on how this could be done?
Edit: And one more unrelated question - how can I change the message appearing in the death window (the one popping out when PC dies, in which buttons for loading, respawning or quiting are located)? I can't find anything that could be responsible for that in the default ondeath script.
Edit2: I created this script, which works just fine for single player, but would it work for all PCs on multi?
#include "x3_inc_horse"
void main()
{
object oPC = GetFirstPC();
while (GetIsObjectValid(oPC) == TRUE)
{
HorseInstantDismount(oPC);
oPC = GetNextPC();
}
DelayCommand(1.0, StartNewModule("module"));
}
Ok, seems to be working (at least for two players). I came up with another script, which simply doesn't let start a new module unless no player is mounted or has a horse assigned but I guess this will be the same for both (GetFirstPC and GetNextPC).
Modifié par Grani, 25 décembre 2012 - 05:01 .





Retour en haut







