How do I move my inactive player? I tried this:
void Jump (string &in asTimer){
SetEntityActive("AltarGrunt1", false);
SetEntityActive("AltarGrunt2", false);
TeleportPlayer("PlayerStartEnd2");
AddTimer("",5.2f,"Ending");
}
void Ending(string &in asTimer){
AddPlayerBodyForce(10000, 3000, 2500, true);
FadeOut(3.2f);
AddTimer("",3.3f,"startcredits");
}
and I tried this line of code instead of the AddPlayerBodyForce with coordinates I found in the map that'd be a good place to drop the player in the air and hopefully make it look like they jumped:
AddBodyForce("Player", -24.5f, 13.25f, -1.5f, "world");
Also, I was wondering how I might simulate the player vomiting. blood. yes, bloody vomit. I got the player to look down at a script area that calls a function that makes a particle system but the particle system doesnt look right if the player isn't standing at the exact right spot when he triggers the event. I also thought of making the particle effect on the player himself instead of the floating script area, but that doesn't work at all. In fact, I didn't see any part of the particle effect when I tried that. And sorry for all the threads i've been making lately in the forum, this is my first mod.