You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
746 B
38 lines
746 B
global.watertype = argument0
|
|
global.waterlevel = argument1
|
|
if (argument0 == 0)
|
|
{
|
|
liquid = instance_create(0, global.waterlevel, oWater)
|
|
filter = instance_create(0, global.waterlevel, oWaterFXV2)
|
|
}
|
|
if (argument0 == 1)
|
|
{
|
|
liquid = instance_create(0, global.waterlevel, oLavaSurface)
|
|
instance_create(0, global.waterlevel, oLavaBGFX)
|
|
filter = instance_create(0, global.waterlevel, oWaterFXV2)
|
|
}
|
|
if argument2
|
|
liquid.alarm[0] = 1
|
|
if argument3
|
|
{
|
|
liquid.wave = 1
|
|
liquid.wspeed = argument4
|
|
liquid.wheight = argument5
|
|
}
|
|
else
|
|
{
|
|
liquid.wave = 0
|
|
liquid.wspeed = 0
|
|
liquid.wheight = 0
|
|
}
|
|
if (argument6 == 1)
|
|
{
|
|
liquid.depth = -500
|
|
filter.depth = -500
|
|
}
|
|
else
|
|
{
|
|
liquid.depth = -90
|
|
filter.depth = -90
|
|
}
|