SetFloat() public méthode

public SetFloat ( int offset, float value ) : void
offset int
value float
Résultat void
Exemple #1
0
        public static bool SetEdictFieldFloat(edict_t ed, string field, float value)
        {
            ddef_t def = CachedSearch(ed, field);

            if (def != null)
            {
                ed.SetFloat(def.ofs, value);
                return(true);
            }
            return(false);
        }
Exemple #2
0
 public static bool SetEdictFieldFloat(edict_t ed, string field, float value)
 {
     ddef_t def = CachedSearch(ed, field);
     if (def != null)
     {
         ed.SetFloat(def.ofs, value);
         return true;
     }
     return false;
 }