Scripting: TeleFrag - Help Needed

Discussion in 'Halo and Forge Discussion' started by SecretSchnitzel, Dec 15, 2016.

  1. Charybdis

    Charybdis Legendary

    Messages:
    70
    Likes Received:
    56
    All done! It is listed as Telefrag Mechanism under my prefabs. My username is FluffyPup809398. The mechanism is actually really simple, only needing two scripts. The first checks to see if you are in the boundary, plays a sound, sets a screen FX, then uses a wait timer for 3 seconds. After that, a damage ratio script set to 100.00 is triggered, killing the player. The second script checks for when the player leaves the boundary. It simply removes the screen FX. All the scripts are in the receiver node.
     
    a Chunk likes this.
  2. Sitri

    Sitri Ancient
    Senior Member

    Messages:
    156
    Likes Received:
    319
    You have to manually show files now, they're hidden by default as of the last update.
     
  3. WagglyBeef

    WagglyBeef Legendary

    Messages:
    91
    Likes Received:
    53
    My only question is on the .05 check why not just leave it at zero so it just never stops checking
     
  4. Charybdis

    Charybdis Legendary

    Messages:
    70
    Likes Received:
    56
    putting it at 0 means it checks once. Putting it at 0.05 repeats the check every 0.05 seconds.
    I have also made it visible. I'll go back and check it though.
     
  5. Sitri

    Sitri Ancient
    Senior Member

    Messages:
    156
    Likes Received:
    319
    I took a look at your prefab, and it seems to kill a player standing on the exit node regardless of there being anyone trying to go through the entrance. I tried to modify my script based on yours, but it seems really inconsistent. Sometimes it will kill outright, sometimes it will work perfectly, and sometimes it won't work at all. Maybe someone can come along and point out what I'm doing wrong.

    Sender Node
    Script 1
    When:
    Boundary: Check
    Continuous
    Players
    0.05​
    Do:
    Power: Set
    Alpha
    On
    THIS
    Script 2
    When:
    Boundary: Check
    Exit
    Players
    0.05​
    Do:
    Screen Effects: Set
    Players [add]​
    Default
    Default​
    Receiver Node
    Script 1
    When:
    Power: Check
    Alpha
    On​
    Do:
    Screen Effects: Set
    Boundary: THIS [add]​
    Earthquake [video]

    Wait
    3.00

    Damage: Radtio
    Boundary: THIS [add]​
    100.00
    Script 2
    When:
    Boundary: Check
    Exit
    Players
    0.05​
    Do:
    Screen Effects: Set
    Players [add]​
    Default​
     
  6. WagglyBeef

    WagglyBeef Legendary

    Messages:
    91
    Likes Received:
    53
    The only thing that lead me not to believe that is if you take a soccer ball and put a boundry on it then add a script
    Saying boundy check comtinous and leave it a 0 seconds and then have the action move offset and have it target activator it will continually follow the person that enters it
     
  7. Charybdis

    Charybdis Legendary

    Messages:
    70
    Likes Received:
    56
    Huh. Might be a quirk of continuous.
     
  8. WagglyBeef

    WagglyBeef Legendary

    Messages:
    91
    Likes Received:
    53
    ???
     
  9. Charybdis

    Charybdis Legendary

    Messages:
    70
    Likes Received:
    56
    OOOHHHH. Well, don't use the script I made, as its purpose was to kill outright. If you want to check for someone trying to enter, I can do so, as well as fixing up some things. I'll prefab it under Telefrag 2
     
  10. Charybdis

    Charybdis Legendary

    Messages:
    70
    Likes Received:
    56
    As in, that must be a special function of continuous that doesn't apply to enter/exit
     
  11. WagglyBeef

    WagglyBeef Legendary

    Messages:
    91
    Likes Received:
    53
    Yeah insteas of a delay its just always checking to see if it should run its script
     
    Charybdis likes this.

Share This Page