Home   Help Search Login Register  

Author Topic: dammge  (Read 685 times)

0 Members and 1 Guest are viewing this topic.

Offline TonyRanger

  • Members
  • *
  • I'm a llama!
dammge
« on: 15 Mar 2004, 13:33:35 »
How can make dammage with fire(the fire is burning by using command "drop"),I know a weapon named"strokegun" can I use it as xxx="strokegun"camcreate POS to make dammage but you can't see anything blow up

PsyWarrior

  • Guest
Re:dammge
« Reply #1 on: 15 Mar 2004, 14:15:45 »
Greetings,

In fact, it's much easier to damage people than this.

You can use the setDammage command on a unit to injure it. For instance:

Code: [Select]
player setDammage 0.1
; Damages the player a little,
player setDammage 0.5
; Damages him 50%,
player setDammage 1
; kills him instantly.

If you want to continue damaging him, try something like this (no garantees):

Code: [Select]
#top
@unit distance fire < 3
_damage = getDammage unit
unit setDammage (_damage = _damage + 0.1)
~0.8
? player distance fire > 2: goto "top"
_damage = getDammage unit
unit setDammage (_damage = _damage + 0.1)
~0.8
? player distance fire > 2: goto "top"
_damage = getDammage unit
unit setDammage (_damage = _damage + 0.1)
~0.8
? player distance fire > 2: goto "top"
; and so on. This only works if there is some object at the
; position of the fire called "fire", and if the infantry unit is
; called "unit".

If you don't understand something above, just ask  ;)

-Supreme Commander PsyWarrior
-Psychic Productions
« Last Edit: 15 Mar 2004, 14:16:35 by PsyWarrior »

Offline TonyRanger

  • Members
  • *
  • I'm a llama!
Re:dammge
« Reply #2 on: 21 Mar 2004, 14:13:24 »
if setdammage to a man,he will bleed,can setdammage without bleed?

_hammy_

  • Guest
Re:dammge
« Reply #3 on: 22 Mar 2004, 06:13:55 »
if setdammage to a man,he will bleed,can setdammage without bleed?

That didn't make sense, if you setdamage a man, depending on how much you damage him, he will die or be injuryed

Offline TonyRanger

  • Members
  • *
  • I'm a llama!
Re:dammge
« Reply #4 on: 22 Mar 2004, 14:20:56 »
but,If I do this _bullet="bulletautoG"camcreate getpos _man he'll die with out bleed,but you still can hear a shoot,is there anything can make dammage with out bleed?