View Full Version : Decal Component Random Rotation

03-04-2011, 10:43 PM
I have this piece of script that is supposed to spawn a set of decals.

function ActivateDecal(){
local Rotator DRotation;
local Rotator RealRot;
DRotation.Pitch = -16384;
DRotation.Roll = 0;
DRotation.Yaw = 0;

DGage1 = NewDecal(DRotation);
DGage2 = NewDecal(DRotation);

function DecalComponent NewDecal(Rotator DRot){
local DecalComponent D;

D = WorldInfo.MyDecalManager.SpawnDecal(DecalMaterial' TempleDefence.DecalMaterials.Radial-Heal',
WorldLocation, DRot,
175, 175,
200, false,,,,,,,,20000.0,,,);

return D;

But the rotation of the 2 decals seem completely random.

Any help is apreciated :)

03-04-2011, 10:53 PM
Ofcrouse.... after 3 hours of trying and searching i get nothing. So i decide to make a forum post. But ofcourse 5 min after that i magicly find a solution -.-

Sry for the useless post (if anyone has a problem like this pm for the solution)