Collisions

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Collisions

Post by Prozail »

Has anyone figured out how to get collisions on an object without inheriting from base_door or base_secret_door?

I can add an ObstacleComponent but then the whole tile is blocked, which is not what i want. And if i declare it as a door i get warnings for a missing gate-node (logical, since a door expects it).
So, what trait or tag makes the doors collidable? or is that hardcoded in the engine??
Maybe a dev can bring some insight?
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Collisions

Post by petri »

Door component is the thing.
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: Collisions

Post by Prozail »

ty for the reply! Then i can stop looking ;)
Post Reply