mirror of
https://github.com/reaaLx/nx1-gsc-dump.git
synced 2026-05-10 20:01:43 +00:00
23 lines
341 B
Plaintext
23 lines
341 B
Plaintext
|
|
InitStructs()
|
||
|
|
{
|
||
|
|
level._struct = [];
|
||
|
|
}
|
||
|
|
|
||
|
|
CreateStruct()
|
||
|
|
{
|
||
|
|
struct = spawnstruct();
|
||
|
|
level._struct[level._struct.size] = struct;
|
||
|
|
return struct;
|
||
|
|
}
|
||
|
|
|
||
|
|
FindStruct( position )
|
||
|
|
{
|
||
|
|
for( i = 0; i < level._struct.size; i++ )
|
||
|
|
{
|
||
|
|
if( DistanceSquared( level._struct[i].origin, position ) < 1 )
|
||
|
|
{
|
||
|
|
return level._struct[i];
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return undefined;
|
||
|
|
}
|