Quote:
Originally Posted by Orangutanz
What about FM_CreateEntity?
|
Doesnt return the value either
Quote:
Originally Posted by sawce
Code:
/* Returns the original return value of an engine function.
* This is only valid in forwards that were registered as post.
*
* get_orig_retval() - no params, retrieves integer return value
* get_orig_retval(&Float:value) - retrieves float return value by reference
* get_orig_retval(value[], len) - retrives string return value
*/
native get_orig_retval({Float,_}:...)
Could either do that (inside of createnamedentity/createentity post calls), or hook createnamedentity/createentity, supercede it, create your own entity, and force that return value, but thats kinda bad to do incase other plugins are looking for those forwards to get return values too.
|
It returns "0"
Edit: it does work, forgot to set post to 1
++k to both
__________________