I have been trying to do a volumen where storm doesnt affect but i cant. So now i am trying to make a volumen where players get instant heal to “simulate” been not affected by the storm but my verse code doesnt work. Anyone could help? Show me the correct code o maybe give me another idea or link to YouTube. THANKS!!
CuracionPorSegundo := 10.0
CuracionVolumen1 := VolumenEspacial{
Ubicacion := vector3{X := 1000.0, Y := 1500.0, Z := 300.0},
Tamano := vector3{X := 500.0, Y := 500.0, Z := 200.0}
}
CuracionVolumen2 := VolumenEspacial{
Ubicacion := vector3{X := 2000.0, Y := 2500.0, Z := 300.0},
Tamano := vector3{X := 400.0, Y := 400.0, Z := 200.0}
}
CurarJugadorEnVolumen := {player : AgenteJugador, volumen : VolumenEspacial =>
if (player.IsInVolume(volumen)) {
loop {
if (not player.IsInVolume(volumen)) {
break
}
player.Heal(CuracionPorSegundo)
Sleep(1.0)
}
}
}
CuracionVolumen1.OnPlayerEnter(player : AgenteJugador) := {
CurarJugadorEnVolumen(player, CuracionVolumen1)
}
CuracionVolumen2.OnPlayerEnter(player : AgenteJugador) := {
CurarJugadorEnVolumen(player, CuracionVolumen2)
}