Vegeta Posted April 1, 2013 Posted April 1, 2013 I want to use a target_give to give the player a weapon (the heavy repeater to be exact) in an MP map. Is this possible, and if so how is it done?
eezstreet Posted April 1, 2013 Posted April 1, 2013 target_give uses the same code in SP as in MP. To use it, just target it, and then target a weapon entity. Be aware, that you have to account for the weapon's respawn timer too! (This means that if the weapon still needs to regenerate, it won't give it to the player). Doesn't matter what you use to target the target_give, it's the same as any old other entity.
Vegeta Posted April 1, 2013 Author Posted April 1, 2013 I found some tutorials on how it is supposed to work, and they said basically the same thing that you said, but for some reason it just makes the selected weapon not be in the map, and doesn't give you the weapon. I tried two different ways. The first had a trigger connected to the target_give which was connected to the weapon, and the second method was the player spawn connected to the target_give which was connected to the weapon. Niether way worked in MP or SP. On a side note, I noticed an entity under weapons labled as "weapon_*****". Does anyone know what that is for?
mrwonko Posted April 1, 2013 Posted April 1, 2013 On a side note, I noticed an entity under weapons labled as "weapon_*****". Does anyone know what that is for?For the common description only, since they were too lazy to copy it to each weapon. It doesn't actually exist.
Vegeta Posted April 3, 2013 Author Posted April 3, 2013 I have tried several different methods, yet I am still unable to use the target_give function at all. Does anyone have a good understanding of either the target_give entity, or the weapon entities? Another acceptable method for what I am doing would be having the weapon not rotating in the air over that ancient triangle hologram thing ( which does not fit the theme for most of my maps ) but instead laying flat on the ground, like the SP method.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now