Okay, so this is for my winter war mod... *_Seifer_* told me it'd work this way, but it just randomly did what it had to...
Right, so i wanted to know how to get the flags of the surface you're stanind on...
------------------
Life is like... skating... yeah, skating is a good example. You see someone skating and think "Hey, that looks like fun and easy!". You go and buy a skateboard and try, you get a few broken bones, asphalt-face and stuff... But hey, i'm not the one who gets hurt!
Code:
close=9999;
for(i=0; i<GetSurfaceCount(); i=i+1)
{
dist=VectorDist(GetSurfaceCenter(i), GetThingPos(player));
if(dist < close)
{
close=dist;
closesurf=i;
}
}
surfflags=GetSurfaceFlags(closesurf);
if(GetThingAttachFlags(player) != 0 && act == 0 && IsThingMoving(player) != 0 && IsThingCrouching(player) != 1 && surfflags & 80000)Right, so i wanted to know how to get the flags of the surface you're stanind on...
------------------
Life is like... skating... yeah, skating is a good example. You see someone skating and think "Hey, that looks like fun and easy!". You go and buy a skateboard and try, you get a few broken bones, asphalt-face and stuff... But hey, i'm not the one who gets hurt!
Last edited by mb; today at 10:55 AM.