Quote:
Originally Posted by Balkenende
Dunno if this has been posted, but its kinda handy.
Ps, if anybody knows of a better way, im open to suggestions :P
OCL-ing a structure seems to remove its collision. Everybody has noticed that i think.
The reason is when you OCL an object which is IMMOBILE and has no Locomoter, its collision is lost. Even if you use the GLA_sneak attack structure.
|
Strange, I never noticed that. In my Laser general mod, the TARDIS uses OCLs to OCL a new TARDIS when it teleports to a new location and it seems to work fine, with units able to target it and collide with it and enter it, it seems to have the correct geommetry radius.
The GLA sneak attack structure seems to work fine too. When the starting structure which you cannot control appears, it dies automatically and uses CreateObjectDie to OCL the actual sneak attack tunnel which you can control (and it transfer the health of the dying object) and the new object that was OCLed seems to have correct collision geometry. Where did you see this effect? Perhaps it has to do with the disposition in the OCL?
Anyway, a possible workaround is to try a DynamicGeometryInfoUpdate module. I am not sure how it works though, see in
Chris's updated module list. The FireStorm objects use a different version of this module.
Another possibility is to have the object have a GLA hole, destroy it after OCLing it, so the hole rebuilds a new object.
Another possibility is to use the EMP behaviour to change it's scale, this i used for the TARDIS so that it shrinks when teleporting away and grows and then shrinks slightly when appearing at the new location. Set the target scale to 1.0 to have it finally reach the correct size.
Another possibility is to use the behavior that lets GLA fake structures become real ones. OCL a fake structure, and have that object have a GrantUpgradeCreate module that grants it the upgrade to become the real structure (and of course the ReplaceObjectUpgrade module too).