Pivity

Dropping an entity question

Last read Never
#1

I just wanted to know if its possible for someone to drop an entity through a chat command so just like /dropweapon i want /dropsuit as i have this addon (https://www.gmodstore.com/scripts/view/804/armor-suits-now-with-saving-options) that i want people to get from blues_unbox addon and be able to drop the suits and store it in there inventory.

Edited Anyone? XD

#2

Jobs section bud

Dumb x 5
#3

dead

Dumb x 4Optimistic x 1
#4

I gotta agree with! BlueSn00ws answer.. If you took the time to read comments and reviews from other customers you would see that you cannot drop the suits, it's not a built in feature. The content creator doesn't care about this at all and it's been over a year since someone asked him about this feature.

Besides, Skeptic, Threebow and The Commander rated the post dumb while they could've helped out instead as they are all content creators and think it's dumb to post a job instead.

I suggest posting a job as it's not a feature and the content creator won't add it.

Dumb x 2
#5
  1. Create a chat command (PlayerSay hook) 2. Check if player is valid and he has a suit. 3. Do other 'can drop' checks if needed. 4. Remove their suit.

If the suit is an entity, use ents.Create with the needed suits class and create an entity. If the suit is not an entity, you have to make one or create a prop_physics and set it a Use function which will give you the suit when you press your use key 'E' on it.

Set the entities position infront of the players eye angles and setpos a few units higher than ground level incase it gets stuck. Don't forget to enablemotion unless you want it to not move from it's spawn location.

This should be enough info for you to make it. You can always read up on gmod wiki as it is the best website on the planet if you're coding something for gmod. Good luck.

Agree x 2Dumb x 1
Users viewing this thread
Nobody