AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Task for blinding>? (https://forums.alliedmods.net/showthread.php?t=153524)

malec321 03-24-2011 22:17

[HELP] Task for blinding>?
 
Can you use tasks to blind a specific person on round start

fysiks 03-24-2011 22:47

Re: [HELP] Task for blinding>?
 
Sure, why not?

ConnorMcLeod 03-25-2011 03:00

Re: [HELP] Task for blinding>?
 
Why would you need a task ?
ScreenFade message has arguments so you can set the length of the blind.

See ScreenFade Util

malec321 03-25-2011 19:24

Re: [HELP] Task for blinding>?
 
Code:

UTIL_ScreenFade(id=0,iColor[3]={0,0,0},Float:flFxTime=-1.0,Float:flHoldTime=0.0,iAlpha=0,iFlags=FFADE_IN,bool:bReliable=false,bool:bExternal=false)

UTIL_FadeToBlack(id,Float:fxtime=15.0,bool:bReliable=false,bool:bExternal=false)



That is for a 15 second blind?

ConnorMcLeod 03-26-2011 06:46

Re: [HELP] Task for blinding>?
 
No, that would to make a player blind forever, but process would take 15 seconds.

Use UTIL_ScreenFade and set flHoldTime to 15.0 sec.


All times are GMT -4. The time now is 14:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.