Results 1 to 6 of 6
  1. #1

    Default Change Light component properties of SpotLightMovable?

    How can I change the Radius/Cone angles etc of a SpotlightMovable that I made in UScript? I looked through documentation, and don't really see any of these properties available.(Current code below)

    Code:
    class PlayerFlashlight extends SpotLightMovable
          notplaceable;
          
    DefaultProperties
    {
    
          Begin Object Name=SpotLightComponent0
                LightColor=(R=255, G=255, B=255)
          End Object
    
          bNoDelete=false;
    }

    Do I just use DrawScale3d? Or is there a better way?
    Last edited by Aldighieri; 07-10-2012 at 02:58 PM.

  2. #2

    Default

    So... am I to assume there is no way to do that in Unrealscript? Or is DrawScale3d my best bet?

  3. #3

    Default

    defaultproperties
    {
    Begin Object name=SpotLightComponent0
    LightColor=(R=250,G=250,B=250) /

    CastShadows=true
    bEnabled=true
    Radius=500.000000
    InnerConeAngle=10
    OuterConeAngle=40
    LightShaftConeAngle=89
    Brightness=1
    BloomScale=50
    BloomThreshold=50
    BloomScreenBlendThreshold=10
    BloomTint=(R=250,G=250,B=250)
    RadialBlurPercent=50

    CastStaticShadows=True
    CastDynamicShadows=True
    bCastCompositeShadow=true
    bAffectCompositeShadowDirection=true

    End Object
    bNoDelete=FALSE

    }

  4. #4
    Redeemer
    Join Date
    Jul 2011
    Location
    London, UK
    Posts
    1,765

    Default

    If it's a flashlight tutorial that you need then i got one on my youtube channel, check in my signature,

  5. #5

    Default

    @ P2P I see. That did work for me, though I didn't see it in the documentation.

    So am I safe assuming that if there's a property in an object in the UDK editor then I can just use it in UScript?

  6. #6
    Boomshot
    Join Date
    Aug 2011
    Posts
    2,366

    Default

    Quote Originally Posted by Aldighieri View Post
    @ P2P I see. That did work for me, though I didn't see it in the documentation.

    So am I safe assuming that if there's a property in an object in the UDK editor then I can just use it in UScript?
    You should consult the class files (.uc) which contain all the properties and functions. Use UnCodeX to browse them.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.