1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Boomerang Questions

Discussion in 'Ask a Coder' started by Smoke39, Sep 2, 2001.

  1. Dragonfly_of_Forgery

    Dragonfly_of_Forgery long gone

    Joined:
    Jun 12, 2001
    Messages:
    409
    Likes Received:
    0
    Gosh, you're right, I don't use it. Wierd.

    Here's my copy\make code:




    copy = inventory(spawn(victims.class,,,victims.location, victims.rotation));
    copy.dropfrom(copy.location);
    victims.gotostate('sleeping');



    Victims is an actor that is an inventory and is not hidden.

    The dropfrom function makes the copy all nice and non-respawning.
     
  2. Smoke39

    Smoke39 whatever

    Joined:
    Jun 2, 2001
    Messages:
    1,793
    Likes Received:
    0
    Why not just set it's respawn time to 0?
    What's "victims.gotostate('sleeping');" for?
     
  3. Dragonfly_of_Forgery

    Dragonfly_of_Forgery long gone

    Joined:
    Jun 12, 2001
    Messages:
    409
    Likes Received:
    0
    Going into state sleeping makes an item disappear and wait to respawn. You used HitItem.SetRespawn(); instead. I don't know what the difference is, your way ight be better.
     

Share This Page