Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Reforming my Question - How to spawn an Archetype ( PointLightMovable )

  1. #11
    Farseer
    Guest
    Code:
    PointLightInstance = Spawn(class'PointLightMovable', self,, Location, Rotation, StaticMeshActor'SomeArchetypePackage.PointLightArchetype');
    should work just as you have it in your example there, but make sure whatever you're trying to spawn is actually spawnable (bStatic=False, bNoDelete=False)

  2. #12
    ThePriest909
    Guest
    Thanks Farseer! Haven't tried it yet but may I ask why a "StaticMeshActor"?

  3. #13
    Farseer
    Guest
    My bad, sorry, should be PointLightMovable instead of StaticMeshActor there.

  4. #14
    ThePriest909
    Guest
    Okay based on your example I tried a
    Code:
    MuzzleFlashLight = Spawn(Class'Koukou_PowerLight', self, , Location, Rotation, PointLightMovable'01_Weapons.WP_Archetypes.Electric_Light_Arch');
    that get's me an error:
    Code:
    Error, Call to 'Spawn': bad or missing parameter 6
    So I turned parameter 6 back into a variable and compliles just fine... can't really understand why it compiles that way to be honest :\ My var reads
    Code:
    var()	Archetype	PointLightMovable	MuzzleFlashArchetype;
    However this won't work in game either. It gets me the same log error reading
    Code:
    ScriptWarning: Accessed None 'MuzzleFlashLight'
    The light Class itself spawns just fine with a simple
    Code:
    MuzzleFlashLight=spawn(class'Koukou_PowerLight',self);

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •