@Quadraxas:
At first, you should use pXent_settype(terrain,3,PH_POLY); because it is more precisely. Secondly, when I scale the terrain in MED I don't get any offset in A7, everything fits. If I scale it per code, only my physcis terrian gets scale, but this is normal, because you can't scale terrains per code (maybe an A7 engine bug). Consequently, I can't find any scaling bugs done by my plugin. However, this function can help you to manual work against a wrong offset:
pXent_LocalOffsetEntity(terrain,0,vector(0,0,50),nullvector);
//this sets the terrain 50 quants up
(must be set after the pXent_settyp function)
@rojart:
I have to ask jcl about the event thing, I need to find out how the wait() functions work intern.
as a workaround make a seperate function like this:
function waiter()
{
wait (random(-10));
pXent_settype(me, 0, 0);
ptr_remove(me);
}
function EventImpact()
{
waiter();
}
By the way, remove all "set(ent,SHADOW);" functions if you don't use it or you might get crashes.
Greets
Chris
P.S.: There will be a ragdoll tutorial/testlevel.