I have a question and maybe I simply don't get how things are working.... I have various forcefields in a map. When the player touches it, I want the forcefield to hurt the player and always thrust the player away in the opposite direction, no matter what the forcefield line is facing at. So I made a generic script that looks like this:
Code: Select all
script 400 (void)
{
Thing_Damage(0, 5, 0);
ThrustThing(-(GetActorAngle(0)), 32, 0, 0);
delay(10);
}
What I want to do?
Damage the player, get his angle, reverse it and thrust him away. Unfortunatly it doesnt work so I guess I made something wrong
