JezuzLizard 272a52cdf6 replaced several isdefined( condition ) && condition with is_true()
Also added the corresponding include if it was missing.
2020-07-23 07:27:39 -07:00

30 lines
543 B
Plaintext

initstructs() //checked matches cerberus output
{
level.struct = [];
}
createstruct() //checked matches cerberus output
{
struct = spawnstruct();
level.struct[ level.struct.size ] = struct;
return struct;
}
findstruct( position ) //checked changed to match cerberus output see info.md
{
foreach ( key in level.struct_class_names )
{
foreach ( s_array in level.struct_class_names[ key ] )
{
foreach ( struct in s_array )
{
if(distancesquared( struct.origin, position ) < 1 )
{
return struct;
}
}
}
}
}