Entity touch floor doens't work?
I have trouble with entity. I detect it touches the floor using this:
PHP Code:
1. I make an entity to can be shot. I use SOLID_BBOX it works but if when I throw the entity, the entity stuck at my origin and I can't move so I make it SOLID_NOT but can't be shot. How is the solution? 2. I want to make the entity rotate while bouncing when touch the floor and I use MOVETYPE_TOSS, if I use MOVETYPE_BOUNCE it don't want to stop bouncing? 3. How can I set the entity on wall if I throw it touches the wall? Thank you. |
Re: Entity touch floor doens't work?
1. SOLID_BBOX is correct, you have to set pev_owner to the player index who is throwing it so player doesn't collide with entity
2. You may have forgotten to set pev_gravity in order to work fine with MOVETYPE_BOUNCE 3. Don't understand, you want to block the entity on the wall when wall is touched ? then you can try to set at touch MOVETYPE_NONE |
Re: Entity touch floor doens't work?
I use engine.
How many value must I set in gravity? PHP Code:
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 15:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.