I was working on a bit of script that invloves simply taking the rotation of the actor and tracing then spawning a decal at the hitlocation. Im not exactly sure what code to use to get the trace function to work.
I think I should be using the HitNormal somehow to set the rotation of the decal. . .
Any suggestions on whats wrong with the code?
Code:
var vector X, Y, Z, StartTrace, EndTrace, HitLocation, HitNormal;
function postbeginplay()
{
placedecal();
}
function placedecal()
{
GetAxes(rotation, X, Y, Z);
StartTrace = Location;
EndTrace = StartTrace + vector(rotation) * 10000;
Trace(HitLocation, HitNormal, EndTrace, StartTrace, True);
spawn(class'BlastMark',,,HitLocation);
}
I think I should be using the HitNormal somehow to set the rotation of the decal. . .
Any suggestions on whats wrong with the code?