Posts: 116
Threads: 10
Joined: Jun 2011
Thanks: 0
Given 0 thank(s) in 0 post(s)
hi,
The command :
onHit actor target damage gun gib
I want making a script who work when i do a gibs .
The probleme is the order of argument
onhit (findcn $curname) target damage (curweapon) 0 = [echo gib ]
What can i replace target and damage
I want the script work according any target and any damage .
Posts: 116
Threads: 10
Joined: Jun 2011
Thanks: 0
Given 0 thank(s) in 0 post(s)
08 Dec 12, 01:47PM
(This post was last modified: 08 Dec 12, 02:17PM by 888.)
No ,no .
You don't understand my problem .
Onkill = [echo died ]
This script write "died" when any player die .
onKill (findcn $curname) = [echo died ]
this script write "died" when i kill a player .The script work .
It's the same things that :
onKill = [ if (= ($arg1) (findcn $curname)) [ echo died] ]
The advantage of first script is who avoid to do condition (if)
Now i want to make a script who write gibs when i kill a player in gibs .
I could make a script like this
onKill = [ if (= ($arg1) (findcn $curname)) [ if ($arg3)[echo gibs] [echo no gibs] ] []]
or
onKill (findcn $curname) = [ if ($arg3)[echo gibs] [echo no gibs] ]
I think he exist a techiq for the same things without the condition (if)
onkill (findcn $curname) target (curweapon) 0 = [echo gib ]
The problem is argument target .
Posts: 116
Threads: 10
Joined: Jun 2011
Thanks: 0
Given 0 thank(s) in 0 post(s)
08 Dec 12, 03:58PM
(This post was last modified: 08 Dec 12, 03:59PM by 888.)
The script dont work
i dont understand ,it work this morning .
I am confused