FFACETools.FFACE.SetNPCPosH C# (CSharp) Method

SetNPCPosH() private method

private SetNPCPosH ( int InstanceID, int index, float value ) : float
InstanceID int
index int
value float
return float
        private static extern float SetNPCPosH(int InstanceID, int index, float value);

Usage Example

Example #1
0
            } // @ public bool SetPlayerDegrees(double degrees)

            /// <summary>
            /// Set NPCs PosH as Degrees (calls FFACE SetNPCPosH directly after converting Degrees to Radians)
            /// </summary>
            /// <param name="index">index of NPC to modify</param>
            /// <param name="degrees">Degrees to set to, will be converted to be within 0-360, negatives are valid too</param>
            /// <returns>true on success, false otherwise</returns>
            private bool SetNPCDegrees(int index, double degrees)
            {
                if (FFACE.SetNPCPosH(_InstanceID, index, DegreesToPosH(degrees)) != 0.0f)
                {
                    return(true);
                }
                return(false);
            } // @ private bool SetNPCDegrees(int index, double degrees)
All Usage Examples Of FFACETools.FFACE::SetNPCPosH
FFACE