Wayne Butane 12 Jan, 2013 @ 5:50am
Making the player a target entitiy
I want to create a prop_physics_multiplayer that sets the players health to 100 if he presses "e" on it. It does not seem to work..
< >
Showing 1-2 of 2 comments
Wazanator 12 Jan, 2013 @ 11:55am 
Here's an example I made you can download https://www.dropbox.com/s/6np4rnxicp7ubef/health_melon.vmf you will need to use sv_cheats and impulse 101 to give yourself the health UI

How I set it up:

1. Create prop_physics_multiplayer
2. Give it the outputs onplayerpickup -> !activator ->sethealth 100 and onplayerpickup -> !self -> kill in order to get rid of the melon

Edit:
You can target the player using !activator and !player and then use inputs outlined here https://developer.valvesoftware.com/wiki/Player
Last edited by Wazanator; 12 Jan, 2013 @ 12:53pm
Wayne Butane 30 Jan, 2013 @ 9:00am 
Thank you very much :D
< >
Showing 1-2 of 2 comments
Per page: 1530 50