Wayne Butane 12. jan. 2013 kl. 5.50
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..
< >
Viser 12 av 2 kommentarer
Wazanator 12. jan. 2013 kl. 11.55 
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
Sist redigert av Wazanator; 12. jan. 2013 kl. 12.53
Wayne Butane 30. jan. 2013 kl. 9.00 
Thank you very much :D
< >
Viser 12 av 2 kommentarer
Per side: 1530 50