Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_shakeobj_ext

(view raw script w/o annotations or w/e)
1
function 
scr_shakeobj_ext
scr_shakeobj_ext

function
scr_shakeobj_ext()
{ var _shakeobj = instance_create(x, y, obj_shakeobj_ext); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakexamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakeyamt = argument2; } if (argument_count >= 4) { if (argument3 != -1) _shakeobj.shakereduct = argument3; } if (argument_count >= 5) { if (argument4 != -1) _shakeobj.shakespeed = argument4; } with (_shakeobj) event_user(0); }
()
2
{
3
    var _shakeobj = instance_create(x, y, obj_shakeobj_ext);
4
    _shakeobj.target = id;
5
    if (argument_count >= 1)
6
    {
7
        if (i_ex(argument0))
8
            _shakeobj.target = argument0;
9
    }
10
    if (argument_count >= 2)
11
    {
12
        if (argument1 != -1)
13
            _shakeobj.shakexamt = argument1;
14
    }
15
    if (argument_count >= 3)
16
    {
17
        if (argument2 != -1)
18
            _shakeobj.shakeyamt = argument2;
19
    }
20
    if (argument_count >= 4)
21
    {
22
        if (argument3 != -1)
23
            _shakeobj.shakereduct = argument3;
24
    }
25
    if (argument_count >= 5)
26
    {
27
        if (argument4 != -1)
28
            _shakeobj.shakespeed = argument4;
29
    }
30
    with (_shakeobj)
31
        event_user(0);
32
}