[SOLVED] prevent item falling inside an object

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
Granamir
Posts: 202
Joined: Wed Jan 07, 2015 7:19 pm

[SOLVED] prevent item falling inside an object

Post by Granamir »

Hi everyone,
i used ItemConstrainBoxComponent to prevent item "fall" inside another object, and it works for item i put, preventing me to put them in desired space, unfortunatelly it doesn't works for items i throw, that partially ends their fly partially inside my object.
Anyone can help me solve this issue?
TY
Last edited by Granamir on Sun May 31, 2015 9:27 pm, edited 1 time in total.
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: prevent item falling inside an object

Post by minmay »

ItemConstrainBoxComponent is only checked for placing items with the mouse, and pushing items by walking into them. To collide with projectiles such as thrown items, you need ProjectileColliderComponent.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Granamir
Posts: 202
Joined: Wed Jan 07, 2015 7:19 pm

Re: prevent item falling inside an object

Post by Granamir »

Thank you
nwakerrCew
Posts: 1
Joined: Fri Jun 05, 2015 11:16 am

SOLVED prevent item falling inside an object

Post by nwakerrCew »

Right click on the item in the object window, pick "use info" at the bottom, and itll give you a list.
Granamir
Posts: 202
Joined: Wed Jan 07, 2015 7:19 pm

Re: [SOLVED] prevent item falling inside an object

Post by Granamir »

Sorry i don't see an object window. Where is it?
Post Reply