input.SetCursorPos

  input.SetCursorPos( number mouseX, number mouseY )

Açıklama

İmlecin konumunu, pencerenin sol üst köşesine göre ekranda ayarlar.

Argümanlar

1 number mouseX
Fare konumu için X koordinatı
2 number mouseY
Fare konumu için Y koordinatı

Örnek

Kullanıcının imlecinin ekranında daire çizmesini sağlar.

hook.Add( 'HUDPaint', 'CircleScreen', function() input.SetCursorPos( ScrW() / 2 + math.sin(CurTime()) * ScrW() / 2, ScrH() / 2 + math.cos(CurTime()) * ScrH() / 2 ) end)

Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord