OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: TH on 10 Jun 2004, 17:49:24

Title: Target scoring system
Post by: TH on 10 Jun 2004, 17:49:24
Does anyone have or know how to make a script that will score if the player knocks down a target? Also is it possible to make the targets move? And a respawn question, how do you make a player respawn only a certain amount of times.
Title: Re:Target scoring system
Post by: Homefry31464 on 10 Jun 2004, 20:26:29
A target, I take it you do not mean an enemy soldier.  I'm not sure about syntax on this:

In a trigger's condition field:
?getdammage targetname != 0

In a trigger activation field:
player addrating 100

Again, I'm not totally sure if that will work or not.  As for your other question, respawning is not possible in SP.  For MP, check this thread out:

http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=91 (http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=91)