/// <summary> /// Creates a new <see cref="Icon"/> instance. /// </summary> /// <param name="position"></param> /// <param name="type"></param> /// <param name="rotation"></param> // TODO: ReSharper suggest that EAVector3 be ExposedBase. I'm wary that this could f**k up something else. Opinions? public Icon(EAVector3 position, uint type, float rotation) { var addr = (uint)CallBinding <uint>(_EASharpBinding_109, position.mSelf, type, rotation); mSelf = new IntPtr(addr); exists = true; }
/// <summary> /// Spawns a traffic car (Note: Not sure how this function works). /// </summary> /// <param name="vehicleKey"></param> /// <param name="position"></param> /// <param name="direction"></param> /// <param name="initialSpeed"></param> public static unsafe void SpawnTraffic(uint vehicleKey, EAVector3 position, EAVector3 direction, float initialSpeed) { CallBinding(_EASharpBinding_492, vehicleKey, position.mSelf, direction.mSelf, initialSpeed); }
/// <summary> /// Spawns a cop (Note: Not sure how this function works). /// </summary> /// <param name="vehicleKey"></param> /// <param name="position"></param> /// <param name="direction"></param> public static unsafe void SpawnCop(uint vehicleKey, EAVector3 position, EAVector3 direction) { CallBinding(_EASharpBinding_53, vehicleKey, position.mSelf, direction.mSelf); }