give health in MP


(bani) #21

On 2002-08-17 16:12, damocles wrote:
Does anyone know the name of the ammo pack item? The one dropped by Lts in MP. I’m going to try using the target_give, but I wanted to give ammo instead of health.

“Ammo Pack” :grin:


(damocles) #22

Hmm…Maybe I misunderstood the target_give description then. It says to target the item(s) you want to give to the player. I take this as meaning you target an actual object you place in radiant. Is that correct? If it is, then where is the ammo pack item on the menus? I’ve looked but can’t see one.

I tried making it point to an ammo_9mm (the mp40 ammo) but that didn’t work :sad:


(Codey) #23

I’ve only tried target_give with health enities, but the only effect I can see it has on the targeted entities is make them dissapear, it does not give the item to the player at all in MP.

The way I’m trying now is without a target_give. Set the entity’s targetname key and it will start invisible, then alertenity from the script and it will “spawn” out.
The problem now is that I cannot make the entity permenantly dissapear again, it will continue to re-spawn after the first “alertentity” call, at the usual spawn time.


(bani) #24

codey my mod is here waiting for you if you need new scripting functionality. just say the word.