Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
No i don't have CS:S , about that dispencer... I don't want weapon to just drop on the ground, on the button press/shoot i want to give player the weapon, even if they shoot that button from the distance. ( If it's even possible ) Or make it so that weapon spawns / teleports to player feet.
Thank you again...
func_button:
Name: button
Outputs: OnDamaged, weapon_spawner, ForceSpawn, Fire once only
Outputs: OnDamaged, weapon_awp_kill_item, kill, Fire once only
Flags: Don't Move (optional), Damage Activates
point_template:
Name: weapon_spawner
Template 1: awp
weapon_awp:
Name: awp
weapon_awp:
Name: weapon_awp_kill_item
Flags: Start constrained
The first awp is the one you don't see in the game.
The second awp is the one you want to see in the game.
Btw: Does the player stand in a certain spot, or does he shoot from a random place?
Thanks :)
Give it a name, what u want.
Turn off smart edit, and add the classname of the weapon(s) you want to give when the player press a button.
For example:
weapon_awp 1 (key is weapon_awp and value is 1).
Now on your button(s), do OnPressed name_of_player_equip,Use,,0,-1
The game_player_equip was made for that with "Use Only" flag.
Or to directly equip all players (with the weapons you set as KeyValue) if you dont check "Use Only".
The way Trond told you is pretty stupid and waste entities. (no offence, but stop copy pasting things you find on gamebanana. Most of them are outdated)
"Now on your button(s), do OnPressed name_of_player_equip,Use,,0,-1"
step, been working on it for almost an hour and can't figure it out, I may be stupid, but i'll keep trying
Which one i have to choose for "via this input" ?
It will show as red, but it's correct. It will work in game.
Also on your game_player_equip, check the flag "Use Only"