Jesterhead37 has written
Edit- Also, is there a way to make it that when I use attack2, it uses a different kind of behavior? for example, using a melee attack with a pistol?
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
on:attack2 { 	$target=scantarget([MELEE RANGE]); 	if(targetdistance()<[MELEE RANGE]) { 		$tclass=targetclass(); 		if($tclass>0) { 			$tid=targetid(); 			damage "$tclass", $tid, [DAMAGE-VALUE]; 		} 	} }
@amstel bier9:
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
on:drop { 	local "$did"; 	$did=currentid(); 	timer "items", $did, [LENGHT OF TIME], 1, "sys\dfree.s2s"; } on:create { 	local "$did"; 	$did=currentid(); 	timer "items", $did, [LENGHT OF TIME], 1, "sys\dfree.s2s"; }
there have to be the two events on:dop and on:create because the on:drop event seems to be only triggered if there are no other items of that type left in your inventory, otherwise it triggers the on:create event. little bug in S2...
next you have to create a new file in your sys folder and call it "dfree.s2s".
open it with any text editing tool and write the following script into it:
1
free "self";