Force player to drop
Quote from gallardo on June 15, 2011, 11:51 amHi,
how can I force the player to drop the object he's holding?Now I issue "+use, -use" commands, but if you know otherwise...
Hi,
how can I force the player to drop the object he's holding?
Now I issue "+use, -use" commands, but if you know otherwise...
Quote from IAmCaveJohnson on June 15, 2011, 12:06 pmI suppose you could parent a phy explosion to the object, but that wouldn't really give the EFFECT of dropping. And I'm not so sure phys explosion has parenting. If the -use works for you, you should probably use it.
I suppose you could parent a phy explosion to the object, but that wouldn't really give the EFFECT of dropping. And I'm not so sure phys explosion has parenting. If the -use works for you, you should probably use it.
Quote from gallardo on June 15, 2011, 5:56 pmyep, it's not bad but fails when the player doesn't hold an object, since forcing the drop this way actually make him pick it up if it's near.
yep, it's not bad but fails when the player doesn't hold an object, since forcing the drop this way actually make him pick it up if it's near.
Quote from rossman231 on June 15, 2011, 6:26 pmHave you considered actually just forcing the player to leave the box on a button or something like that? Portal is a puzzle game and it's usually best to solve stuff with puzzles instead of doing something weird like making the box simply get released.
I think some context into what you're trying to do will get you a better answer than asking how to do your specific implementation.
Have you considered actually just forcing the player to leave the box on a button or something like that? Portal is a puzzle game and it's usually best to solve stuff with puzzles instead of doing something weird like making the box simply get released.
I think some context into what you're trying to do will get you a better answer than asking how to do your specific implementation.
Quote from ChickenMobile on June 16, 2011, 4:42 amYou could use a point_clientcommand and trigger an output to -use at a certain spot (OnTrigger, point_clientcommand Command -use)
You could use a point_clientcommand and trigger an output to -use at a certain spot (OnTrigger, point_clientcommand Command -use)
Quote from gallardo on June 16, 2011, 7:38 amYou can't input -use only, "+use, -use" works.
I'll post a different solution.. if I find one.
You can't input -use only, "+use, -use" works.
I'll post a different solution.. if I find one.
