13.12.2012, 22:08
Quote:
Alright, two questions:
1. How do I make it so PlayeAudioStreamForPlayer is sent within a 5 meter radius when a player types the command? 2. How do I StopAudioStreamForPlayer when it's played for 10 seconds? Thanks |
Quote:
The easiest example of its usage I can give you is calling functions depending on input from user or any other interface that communicates with your script.
For example ZCMD. Without this function, the script would have to run string comparisons. With it, it doesn't have to. |
Quote:
Also, in external include files, if I had an include that added a gameplay feature that had an "OnSomething" event callback, I'd want to call that so people can use that callback in their own scripts (Like my "OnButtonPress" script)
If I used a normal function call like: pawn Code:
pawn Code:
|