Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_NoVehicleSurfaceValidation.c
Go to the documentation of this file.
2{
3 //------------------------------------------------------------------------------------------------
4 override bool IsSurfaceValid(IEntity surfaceEnt, vector worldPosition, vector surfaceNorm, int nodeIndex, int colliderIndex, SurfaceProperties surfaceProps, string surfaceMaterial, string colliderName)
5 {
6 while (surfaceEnt)
7 {
8 if (Vehicle.Cast(surfaceEnt))
9 return false;
10
11 if (Turret.Cast(surfaceEnt))
12 return false;
13
14 surfaceEnt = surfaceEnt.GetParent();
15 }
16
17 return true;
18 }
19}
proto external IEntity GetParent()
This is a base variant that does nothing, and thus it must NOT be used.
enum EPhysicsLayerPresets Vehicle
Definition gameLib.c:24