can someone tell me a script for a gate
the gate must open/close just if i have a key with a specific id
pleaseeeee!!!
pleaseeeeee
someone pleaseee help me
edited 2×, last 15.10.11 09:26:41 am
on:start { 	local $reused=0; } on:use { 	if ((playergotitem(4)==0) && ($reused==0)) { 		$reused=1; 		speech "negative"; 		msg "You don't have a key!",3; 		event "use"; 	} 	elseif ($reused==1) { 		$reused=0; 	} }
on:use { if(playergotitem(#1)<1) { $state=0; }else{ if(playergotitem(#1)>0) { if($state==0){ model "gfx/gate.b3d"; } }else{ if($state==1){ model "gfx/gate_close.b3d"; } } }