Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

Decal Component Random Rotation

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Decal Component Random Rotation

    I have this piece of script that is supposed to spawn a set of decals.

    Code:
    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

  • #2
    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)

    Comment

    Working...
    X