This isn't more about ptr_for_handle(...) == NULL is it?
JCL told you that code wouldnt work!!
I posted a possible solution in the previous thread.
http://www.conitecserver.com/ubb/ultimatebb.php?ubb=get_topic;f=15;t=002050In answer to your question, yes you can. But you must assign the parameter to a script defined pointer of known type before you can use it directly for assignments.
eg.
code:
entity* myEnt;
....
// call the function
SomeFunction(me);
....
function SomeFunction(entPtr)
{
// can't use entPtr directly, so assign it to an already defined pointer
myEnt = entPtr;
// now use myEnt to assign values to entPtr
myEnt.passable = on;
}
....