Home   Help Search Login Register  

Author Topic: Medpack Script  (Read 836 times)

0 Members and 1 Guest are viewing this topic.

3MD-GeForce

  • Guest
Medpack Script
« on: 30 Jul 2003, 02:06:47 »
I've seen in a mission or two where poeple ahve medpack scripts, once you get hurt enough the script kicks in and the option appears in your menu to use a medpack. Does someone have or know of a script like this?

CrashnBurn

  • Guest
Re:Medpack Script
« Reply #1 on: 30 Jul 2003, 02:54:51 »
simple. Put a trigger with the condition-

! canstand player && (alive player)

on activation-

medkit = player addaction ["Use Medkit", "medkit.sqs"]; hint "Medkit available"

Make a new text file and call it "medkit.sqs"
Contents of medkit.sqs-

player removeaction medkit
player setdammage 0
~1
hint "Health Restored"
exit