• An entite fliper SWEP
    1 replies, posted
So i want to make a swep that when aiming at an entitie thats flipped and then clicking it will flip it back to the upwards position. E.G. If weed is flipped on its side i will use the tool and it will make it upright.
An *entity *flipper SWEP.... Why not just use the keep upright toolgun? Anyways, trace the eyes of the player with the SWEP, search for entities, if an entity is found, and that entity is in a pre-defined table for "allowed to make upright" entities, then set that entity's roll and pitch to 0, that should (mostly, if the entity isn't modeled with the "up" face facing up originally, it won't be enough) do the trick. Simple stuff.
Sorry, you need to Log In to post a reply to this thread.