I'm running it through a for loop with a few ifs to exit out of the loop once an invalid ent with the classnames are found. I'm using engine_get_vector to retrieve their origins and storing them into arrays which I print out later on to see exactly what their origins are. I would use get_keyvalue but seeing as it has a bug I guess I'll have to wait untill TP5.
Quote:
|
Here's just an idea: use fakemeta (surprise!) to hook the pfn_spawn function, possibly the post one, and in the forward you just set the player's origin to wherever you want.
|
How would I go about hooking pfn_spawn function?
P.S - If needed I'll post the exact code when I get the chance.
__________________