need help again

X.Terror.X

New Member
Reaction score
10
i need some help with people who know about lightning glitching

i made some system [alot of triggers]

the thing they do is

pudgy gets sprawned
pudgy steps in first region [from this point a lightnign effect is pulled from the region and pos on pudgy unit]
pudgy enters second region and the lightning effect stays within region 1 and 2

also i added some damage but that aint bugging [not to most]

i made for every other sprawning pudgy an array varible [1]-[4] for ligning effects units and points

its hard to explain if you want me to show it too people it whould be better though but my problem is the lightning buggs up


when pudgy enters first region the lightning will set from point 1 and to a point where there isnt even a region unit or anything [wtf]
when pudgy reaches region 2 there is another beam from the same point where isnt any varible region or unit been set and that connects to the second region


this happans on 2 of the 4 triggers


my regions are placed like this and so by this each region is triggered by 2 diffrent lines
O is the place the lightning comes [bugg place]
X = region
Other is direction they are walking over the regs

Edit: Ignore ____ cant use spaces to show

___________O


______________|
__>__X________X



_____X________X____<-

_____^
_____|

up and down bugg the bug i just explained
also i got a addiotional bug when up or down is moved they also make the right or left line so if they enter the first region like left tops he create lightning buff bugg for tops and the perfect line for down while the damage exist for tops line only

i try posting single trigger the rest is just precisely the same but only with changed of regions and varible arrays they are used for [i rechecked that 3 times if there is any fault made in that]

this is the trigger from down left to left top [only one not glitching]
Code:
Events
    pudgy walks
    Events
        Unit - A unit enters DB03 <gen> (Left bot from a sprawning point)
    Conditions
        (Unit-type of (Triggering unit)) Equal to pudgy
    Actions
        Set Pudgy_unit[1] = (Entering unit)
        Unit - Order (Entering unit) to Move To (Center of C4 <gen>)

DB03 is a side region where they get sprawned at only 1 pudge will sprawn there and cannot bug with other pudges


Code:
Pudgy walks
    Events
        Unit - A unit enters C1 <gen>(left bot
    Conditions
        (Triggering unit) Equal to Pudgy_unit[1]
    Actions
        Unit - Order (Entering unit) to Move To (Center of UB03 <gen>)
        Trigger - Turn off LML <gen>
        Trigger - Turn off LTL <gen>
        Set Lightning_target[1] = (Center of C1 <gen>)
        Lightning - Move Lightning_effect[1] to source Lightning_target[1] and target (Center of C4 <gen>)


Code:
PR31
    Events
        Unit - A unit enters C1 <gen>
    Conditions
        (Triggering unit) Equal to Pudgy_unit[1]
    Actions
        Unit - Order (Entering unit) to Move To (Center of UB03 <gen>)
        Trigger - Turn off LML <gen>
        Trigger - Turn off LTL <gen>
        Set Lightning_target[1] = (Center of C1 <gen>)
        Lightning - Move Lightning_effect[1] to source Lightning_target[1] and target (Center of C4 <gen>) (lightnign target connects to pudgy first and when enter region this conects region to region)


explanation triggers:
LML LTL LDL
Lightning Target [side of sprawn] Left
Lightning Damage [side of sprawn] Left
Lightning Move [side of sprawn] Left


Code:
Events
LTL
    Events
        Time - Every 0.05 seconds of game time
    Conditions
    Actions
        Set Lightning_target[1] = (Position of Pudgy_unit[1])

    Time - Every 0.05 seconds of game time


Code:
LML
    Events
        Time - Every 0.05 seconds of game time
    Conditions
    Actions
        Lightning - Move Lightning_effect[1] to source (Center of C4 <gen>) and target Lightning_target[1]



The damage isnt very bugging only by 1 side so if u got a hard head u can try finding glitches lol

Code:
LDL
    Events
        Time - Every 0.10 seconds of game time
    Conditions
    Actions
        For each (Integer Pudgy_combo[1]) from 1 to 10, do (Actions)
            Loop - Actions
                Unit - Cause none.mdl 0010 <gen> to damage circular area after 0.00 seconds of radius 100.00 at ((Center of C4 <gen>) offset by (Real((((Integer((Distance between (Center of C4 <gen>) and Lightning_target[1]))) x Pudgy_combo[1]) / 10))) towards (Angle from (Center of C4 <gen>) to Lightning_target[1]) degrees), dealing 99999.00 damage of attack type Spells and damage type Normal

it simply takes region till lightnign target (pudgy or region)
do it /10 and X integer i put basic value of the varible to 10 because i didnt knew if it whould bug otherwise

other 3 have pudgy_combo [2---4]

p.s. i hoped i used good transformation to GUI

i guess its hard one but mabye experienced this earlyer and know how to anti glitch or bug it
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top