Jump to content

collision and prefab not working

Recommended Posts

A prefab with script moves and collides then it is realeased.

The same prefab loaded by another script just does not collides ? it seems a bug.


Just dezip it as a new directory "test" in your project root folder and launch the map file.



Share this post

Link to post

You are right. It appears the brush shape is not being copied with copied brushes. A temporary workaround is to rebuild it yourself:

function Script:fireBall()	 

	local fireball = Prefab:Load(self.prefabFireBall,Map.LoadScripts)

Share this post

Link to post

Same problem here so I guess this is not fixed yet?

I have a CSG brush as prefab and when I load it, there is no collision.

BuildShape() worked for me but I can't find nothing about it in the documentation pages.


Is BuildShape() resource intensive?

Share this post

Link to post
This topic is now closed to further replies.
  • Create New...