Cubescript onhit argument
#5
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 .
Thanks given by:


Messages In This Thread
Cubescript onhit argument - by 888 - 08 Dec 12, 11:18AM
RE: Cubescript onhit argument - by MykeGregory - 08 Dec 12, 11:59AM
RE: Cubescript onhit argument - by 888 - 08 Dec 12, 12:29PM
RE: Cubescript onhit argument - by Luc@s - 08 Dec 12, 12:55PM
RE: Cubescript onhit argument - by 888 - 08 Dec 12, 01:47PM
RE: Cubescript onhit argument - by Luc@s - 08 Dec 12, 03:34PM
RE: Cubescript onhit argument - by 888 - 08 Dec 12, 03:58PM
RE: Cubescript onhit argument - by Luc@s - 08 Dec 12, 04:30PM