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..
< >
1-2 van 2 reacties weergegeven
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
Laatst bewerkt door Wazanator; 12 jan 2013 om 12:53
Thank you very much :D
< >
1-2 van 2 reacties weergegeven
Per pagina: 1530 50