Scorpion1122
03-04-2011, 05: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 :)
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 :)