All pastes #265969 Raw Edit

example

public lua v1 · immutable
·published 2006-12-03 20:12 UTC
rendered paste body
--File: example.luaif SERVER then AddCSLuaFile("example.lua") end --This makes the clients download and execute this filefunction propSelect() --This function is shared (it's defined both server and client-side)	if SERVER then		--Here you do what you need to do server-side	end		if CLIENT then		DrawBeam()	endendif CLIENT then --This block is only executed by the client-side	function DrawBeam()		--Here you do the trace from the player and draw the beam effect	end	end