engiGetEntityModel
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "engiGetEntityModel")] public static extern Int64 x86_engiGetEntityModel(Int32 entity); [DllImport(enginedll, EntryPoint = "engiGetEntityModel")] public static extern Int64 x64_engiGetEntityModel(Int64 entity); public static Int64 engiGetEntityModel(Int64 entity) { if (IntPtr.Size == 4) { var _result = x86_engiGetEntityModel((Int32)entity); return _result; } else { return x64_engiGetEntityModel(entity); } }