Results 1 to 2 of 2
  1. #1
    Iron Guard
    Join Date
    Feb 2002
    Posts
    616

    Default Help with Triggered actors

    Hi,

    I have made a Keypoint actor, but now I am having trouble getting it to be triggered: I suppose, firstly, can a Keypoint actor be triggered?

    I know how to setup a trigger to do an evet, thats easy.

    The keypoint actor I have created, changes a few properties of another actor via a class link. But now I want to be able to trigger the keypoint and have it stay on for a set period then turn of by itself.

    I have the following code for the TriggerTimed function.

    state() TriggerTimed
    {
    function Trigger( Actor Other, pawn EventInstigator )
    {
    Set();
    SetTimer( 1.9, false );
    }

    event Timer()
    {
    Reset();
    }
    }


    Set() and Reset() are the functions I use to change the properties of the actor in question, they work fine if I call them manually, but the trigger event is not calling them.
    I have a simple trigger setup and it will not trigger the Keypoint.

    The keypoint is set to TrigerTimed in the Object, but the state() TriggerTimed does not get called. Can ne1 tell me why, or will I need to create the actor under another, so the trigger works.

  2. #2
    MSgt. Shooter Person
    Join Date
    Oct 2002
    Posts
    399

    Default

    Whats your class based on ? Theres a whole section devoted to triggers and the such called "Triggers" funnily enough. You can make your own object do the same thing as the trigger class set, just by setting the relevant variables. I cant say what they are cos im at work, but just look at the trigger classes and im sure you will work it out.


 

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.