Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_stickto

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

function
scr_stickto(arg0, arg1)
{ _stickto = instance_create(0, 0, obj_stickto); _stickto.stickingobj = id; _stickto.stucktoobj = arg0; _stickto.relativedepth = arg1; with (_stickto) event_user(0); return _stickto; }
(arg0, arg1)
2
{
3
    _stickto = instance_create(0, 0, obj_stickto);
4
    _stickto.stickingobj = id;
5
    _stickto.stucktoobj = arg0;
6
    _stickto.relativedepth = arg1;
7
    with (_stickto)
8
        event_user(0);
9
    return _stickto;
10
}