Well, what value of className are you passing onto the function? ----- Original Message ----- From: "Dan Clark" <[email protected]> To: "Discussion of Half-Life Programming" <[email protected]> Sent: Friday, March 20, 2009 7:15 PM Subject: [hlcoders] Model Entity
>I am trying to create a model entity for a mp mod. Do I put it in shared > mp or just server dir? When I create to cpp and h files everything > compiles but when I created the entity it returns null: > > > IServerNetworkable *pNetwork = EntityFactoryDictionary()->Create( > className ); > g_pForceAttachEdict = NULL; > > if ( !pNetwork ) > return NULL; > > > It always returns null and I get a message in game: Attempted to create > unknown entity type: > > -- > Best regards, > Dan > http://www.lnxmad.com > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

