Results 1 to 6 of 6

Thread: Another question about Goldrush

  1. #1

    Another question about Goldrush

    Hi,
    I would like to know what triggering in Goldrush script returned or dropped script?

  2. #2

    Re: Another question about Goldrush

    This is triggered within the game automatically, when one of many conditions are met.
    dropped: https://github.com/id-Software/Enemy...g_items.c#L965
    returned: https://github.com/id-Software/Enemy.../g_team.c#L503

  3. #3

    Re: Another question about Goldrush

    Thanks for your help!

    In my case, the axis team steals the gold bars. How to refer to events in the map script and in game_manager or in other else?

  4. #4

    Re: Another question about Goldrush

    You have to put the right ctf entity: in your case gold belongs to allies, so it should be team_CTF_blueflag, in the entity window you should add scriptname like goldCrate or something on your taste, then in your script you can refer to the entity and its events by its scriptname
    Code:
    goldCrate {
        trigger stolen
        {...}
        trigger returned
        {...}
        trigger dropped
        {...}
    }
    just like in goldrush script.

    In the game_manager trigger event allied_object_stolen is also fired automatically once the objective is stolen by axis. allied_object_returned will run once the objective is returned. axis_object_dropped if the object was dropped by axis. Handling stuff in game_manager is optional.
    A little sample map that has all the basic stuff: https://www.dropbox.com/s/uivz0prd10...steal.zip?dl=1.

  5. #5

    Re: Another question about Goldrush

    Thanks! This works perfectly. There is only one thing to do now.
    How do I block auto-generated text (
    Axis have stolen the allied gold! Allies have returned the allied gold! )?

  6. #6

    Re: Another question about Goldrush

    Oops, you can't disable these !

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
  •