Пример #1
0
 /// <summary>Spawn a particle effect with a position and the following parameters...</summary>
 /// <param name="nonLoopedPTFX">The type of particle effect you want</param>
 /// <param name="position">The position you want the particle effect to spawn</param>
 /// <param name="rotation">The rotating of the particle effect</param>
 /// <param name="scale">Sets the size of the particle effect</param>
 public static void SpawnParticle(PTFXNonLoopedParticle ptfx, Vector3 position, float scale, Vector3 rotation)
 {
     SpawnParticle(PTFXNonLoopedDictionaries[(int)ptfx].Keys.ToArray <string>()[0],
                   PTFXNonLoopedDictionaries[(int)ptfx].Values.ToArray <string>()[0],
                   position, scale, rotation);
 }
Пример #2
0
 /// <summary>
 /// ** Use the constructor for spawning looped particles **
 /// Spawn a particle effect with a Ped and the following parameters...
 /// </summary>
 /// <param name="ptfx">The type of particle you want</param>
 /// <param name="character">The Ped you want to spawn the particle effect on</param>
 /// <param name="scale">Sets the size of the particle effect</param>
 /// <param name="rotation">The rotating of the particle effect</param>
 /// <param name="offset">The offset of the particle effect from the ped</param>
 public static void SpawnParticle(PTFXNonLoopedParticle ptfx, Ped character, float scale, Vector3 rotation, Vector3 offset)
 {
     SpawnParticle(PTFXNonLoopedDictionaries[(int)ptfx].Keys.ToArray <string>()[0],
                   PTFXNonLoopedDictionaries[(int)ptfx].Values.ToArray <string>()[0],
                   character, scale, rotation, offset);
 }
Пример #3
0
        /*
         * MARK: - Static functions for spawning particle on position
         */

        /// <summary>Spawn a particle effect with a position and the following parameters...</summary>
        /// <param name="nonLoopedPTFX">The type of particle effect you want</param>
        /// <param name="position">The position you want the particle effect to spawn</param>
        /// <param name="scale">Sets the size of the particle effect</param>
        public static void SpawnParticle(PTFXNonLoopedParticle ptfx, Vector3 position, float scale)
        {
            SpawnParticle(ptfx, position, scale, Vector3.Zero);
        }
Пример #4
0
 /// <summary>
 /// ** Use the constructor for spawning looped particles **
 /// Spawn a particle effect with a Ped and the following parameters...
 /// </summary>
 /// <param name="ptfx">The type of particle you want</param>
 /// <param name="character">The Ped you want to spawn the particle effect on</param>
 /// <param name="scale">Sets the size of the particle effect</param>
 /// <param name="rotation">The rotating of the particle effect</param>
 public static void SpawnParticle(PTFXNonLoopedParticle ptfx, Ped character, float scale, Vector3 rotation)
 {
     SpawnParticle(ptfx, character, scale, rotation, Vector3.Zero);
 }
Пример #5
0
 /// <summary>Spawn a particle effect with a position and the following parameters...</summary>
 /// <param name="nonLoopedPTFX">The type of particle effect you want</param>
 /// <param name="position">The position you want the particle effect to spawn</param>
 /// <param name="rotation">The rotating of the particle effect</param>
 /// <param name="scale">Sets the size of the particle effect</param>
 public static void SpawnParticle(PTFXNonLoopedParticle ptfx, Vector3 position, float scale, Vector3 rotation)
 {
     SpawnParticle(PTFXNonLoopedDictionaries[(int)ptfx].Keys.ToArray<string>()[0],
                   PTFXNonLoopedDictionaries[(int)ptfx].Values.ToArray<string>()[0],
                   position, scale, rotation);
 }
Пример #6
0
 /*
  * MARK: - Static functions for spawning particle on position
  */
 /// <summary>Spawn a particle effect with a position and the following parameters...</summary>
 /// <param name="nonLoopedPTFX">The type of particle effect you want</param>
 /// <param name="position">The position you want the particle effect to spawn</param>
 /// <param name="scale">Sets the size of the particle effect</param>
 public static void SpawnParticle(PTFXNonLoopedParticle ptfx, Vector3 position, float scale)
 {
     SpawnParticle(ptfx, position, scale, Vector3.Zero);
 }
Пример #7
0
 /// <summary>
 /// ** Use the constructor for spawning looped particles **
 /// Spawn a particle effect with a Ped and the following parameters...
 /// </summary>
 /// <param name="ptfx">The type of particle you want</param>
 /// <param name="character">The Ped you want to spawn the particle effect on</param>
 /// <param name="scale">Sets the size of the particle effect</param>
 /// <param name="rotation">The rotating of the particle effect</param>
 /// <param name="offset">The offset of the particle effect from the ped</param>
 public static void SpawnParticle(PTFXNonLoopedParticle ptfx, Ped character, float scale, Vector3 rotation, Vector3 offset)
 {
     SpawnParticle(PTFXNonLoopedDictionaries[(int)ptfx].Keys.ToArray<string>()[0],
                   PTFXNonLoopedDictionaries[(int)ptfx].Values.ToArray<string>()[0],
                   character, scale, rotation, offset);
 }
Пример #8
0
 /// <summary>
 /// ** Use the constructor for spawning looped particles **
 /// Spawn a particle effect with a Ped and the following parameters...
 /// </summary>
 /// <param name="ptfx">The type of particle you want</param>
 /// <param name="character">The Ped you want to spawn the particle effect on</param>
 /// <param name="scale">Sets the size of the particle effect</param>
 /// <param name="rotation">The rotating of the particle effect</param>
 public static void SpawnParticle(PTFXNonLoopedParticle ptfx, Ped character, float scale, Vector3 rotation)
 {
     SpawnParticle(ptfx, character, scale, rotation, Vector3.Zero);
 }