A
AtLantiSs
Guest
ERROR!!! :: ############################################################################################
FATAL ERROR in
action number 1
of Step Eventobj_MudHopper
for object obj_hovertank_shot:
Variable obj_hovertank_shot.encounter(100137, -2147483648) not set before reading it.
at gml_Object_obj_hovertank_shot_CollisionEvent_47_1 (line 37) - target = encounter;
############################################################################################
Compile finished: 2:50:47 PM
What in Satans does that mean?
in the collision event with a bullet & enemy basic I have this
if team =1
{
{
with(other)
{
scr_blood();
alarm[2] += random(30)+irandom_range(0,5)
HitBy = "Ranger"
}
if instance_position(x,y,obj_MudHopper)
{
if !irandom(3)sound_play(snd_mudhopper_hit)
if ChallengeMode = 1 {hp -= 5}
if ChallengeMode = 0 {hp -= 1}
target = encounter;
see = 1;}
}
}
target = nothing
encounter = instance nearest enemy basic
all enemies t=have the above variables but this BS says the bullet sdoesmt have it set -____-_--
Why do I get the error above if the code is saying that if the bullet hits the enemy, if it's a mudhopper, remove health from it.
Talking about some stupid ass variabble wasn't set -_____-
FATAL ERROR in
action number 1
of Step Eventobj_MudHopper
for object obj_hovertank_shot:
Variable obj_hovertank_shot.encounter(100137, -2147483648) not set before reading it.
at gml_Object_obj_hovertank_shot_CollisionEvent_47_1 (line 37) - target = encounter;
############################################################################################
Compile finished: 2:50:47 PM
What in Satans does that mean?
in the collision event with a bullet & enemy basic I have this
if team =1
{
{
with(other)
{
scr_blood();
alarm[2] += random(30)+irandom_range(0,5)
HitBy = "Ranger"
}
if instance_position(x,y,obj_MudHopper)
{
if !irandom(3)sound_play(snd_mudhopper_hit)
if ChallengeMode = 1 {hp -= 5}
if ChallengeMode = 0 {hp -= 1}
target = encounter;
see = 1;}
}
}
target = nothing
encounter = instance nearest enemy basic
all enemies t=have the above variables but this BS says the bullet sdoesmt have it set -____-_--
Why do I get the error above if the code is saying that if the bullet hits the enemy, if it's a mudhopper, remove health from it.
Talking about some stupid ass variabble wasn't set -_____-