Results 1 to 5 of 5
  1. #1
    MSgt. Shooter Person
    Join Date
    Feb 2010
    Posts
    45

    Default Making a static mesh vanish

    Is this possible without touching code? I'm trying to make a static mesh vanish once a player touches it. I'd like to do it simply with kismet but I know that's probably not going to happen

  2. #2
    MSgt. Shooter Person
    Join Date
    Oct 2007
    Posts
    102

    Default

    I'm almost sure it can be done with kismet, will play around with this tonight.

  3. #3
    MSgt. Shooter Person
    Join Date
    Nov 2009
    Posts
    405

    Default

    In Kismet is as simple as event 'MyStaticMesh Touched' => Destroy (linked up with MyStaticMesh obj variable).
    In code it's a bit more tricky, as the .Destroy function doesn't work as expected. But you can always trick it by setting the mesh to be hidden and removing any collisions with it:
    MyHitActor.SetHidden(true);
    MyHitActor.SetCollision(false, false, false);

  4. #4
    MSgt. Shooter Person
    Join Date
    Oct 2007
    Posts
    102

    Default

    Quote Originally Posted by Kaldrick View Post
    In Kismet is as simple as event 'MyStaticMesh Touched' => Destroy (linked up with MyStaticMesh obj variable).
    It should be that easy, almost but not quite. You have to have an InterpActor and change the collision type to touch all.

    ----
    Heres the step by step...

    Place a static mesh and then right click on it and -Convert to Mover-
    OR place an InterpActor (Movers and InterpActors are same thing)

    Go to the properties and change -Collision, Collision Type- to COLLIDE_TouchAll

    With it still selected, open Kismet.

    Right click and select -New Event Using InterpActor_??-
    Right click and create a second new kismet node -Actor, Destroy-
    Conect the -Touched- from the event to the -In- of the Destroy
    Still selected, right?
    Right click on the Destroy I/O connector called Target and create -New Object Var from InterpActor_??

    This should now cause the mesh to dissapear when you touch it, if not, make sure -Movement, Physics- is set to PHYS_Interpolating.

    HTH
    Prez

  5. #5
    MSgt. Shooter Person
    Join Date
    Feb 2010
    Posts
    45

    Default

    Awesome. Thanks for the help.

    I did try the destroy action in kismet but it didn't do anything and I quit after a short time playing with it. As a temp, I actually did a Matinee which just took the object through the floor at a really high speed which had the same effect of it just vanishing. This is better though

    Thanks to both of you.


 

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.