Entity not dropping to floor
1 Attachment(s)
In my plugin, when a player dies, the bag does not drop to the ground. It stays suspended in the air, and I've tried changing the movetype to MOVETYPE_NOCLIP, and it still does not work.
I want to leave the aiment there because it allows the bag to follow the player without following behind the player. It stays on top of the player directly at all times. |
Re: Entity not dropping to floor
MOVETYPE_TOSS has gravity, so it should fall.
|
Re: Entity not dropping to floor
Quote:
|
Re: Entity not dropping to floor
Try setting gravity to 1.0 and velocity to Float:{0.0, 0.0, -50.0} along with that MOVETYPE_TOSS.
|
Re: Entity not dropping to floor
About code, why do you set bag origin each prethink if you have set it's property aiment to player index ?
About the thread, have you tried same thig with different models ? You may simply have to alter model origin offsets with som model editor like jedi model viewer. |
Re: Entity not dropping to floor
Quote:
I actually have not tried with different models. But I know that this model is off-centered for sure, because when trying to rotate it, it rotates in a circle, rather than in place. I'm not sure how to alter model origin offsets, but I do have Jed's Model Viewer. |
Re: Entity not dropping to floor
drop_to_floor?
|
Re: Entity not dropping to floor
Quote:
|
| All times are GMT -4. The time now is 19:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.