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..
< >
Показані коментарі 12 із 2
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
Автор останньої редакції: Wazanator; 12 січ. 2013 о 12:53
< >
Показані коментарі 12 із 2
На сторінку: 1530 50