Pushable block?
Is thare enyway i can spawn a block infront of a user that can be pushed by the user? like in hl1 when you can use E to move the block.
|
Re: Pushable block?
Check if the user is touching the ent , then check the buttons, then move the ent by incrase origin. :)
E.g: User touching the ent -> If button & IN_FORWARD -> Move ent in front by Origin[0] += 5.0 //units. |
Re: Pushable block?
Buttons
think i get it but how can i compare 2 buttons? show me an example plz. Relly want to use use button and foreward. Move Block But if a player tuch the block and move to the left whit it. it will always go the same way. how can i do so it goes to the players left all time and not the block left side. Another problem Will happen,players can move the block on to people and walls and if they move the block on people . The event will be triggered again. |
Re: Pushable block?
Hmm, i've maked something, but is not working as i espect! Buttons check and touch works but the direction is the problem because i must push the block in the direction of player :s...dunno. Maybe someone else know how to do this... ? Fatalis have a "carpet block" on his bcm4...and you can fly with that block, and is moving with player in his direction.
|
Re: Pushable block?
May be you could check existing pushable entities properties to find the one that make them pushable.
|
Re: Pushable block?
Quote:
|
Re: Pushable block?
There's somme maps with pushable boxes ( i remember a quite dark rats maps with a micro waves, and with a box like that ).
Also there's a ball you can push with +use in cs_rio . |
Re: Pushable block?
Alka: You can use velocity_by_aim() to move the box in the direction the player is aiming at
|
Re: Pushable block?
Hmmm, yeah lol , you'r right :)...I've maked this but is not working :|, should work but nothing...
Code:
#include <amxmodx> |
Re: Pushable block?
The speed is 1 .. Try to make 100 or something
Code:
Untested |
| All times are GMT -4. The time now is 01:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.