![]() |
|
|
#1 |
|
Registered User
Join Date: Jul. 3rd, 2001
Posts: 20
|
Big question.
How can I write in UScript that IF the player(any player in the game) is standing in a certian radius for 10 minutes, something happens(nevermind what). Please help me.
__________________
Etus - Mod Manager and Lead Programmer of Deadly Recover |
|
|
|
|
|
#2 |
|
I once heard a story about a wise old man who had written a mutator called Anti-Camper which would fry the arse, to put it delicately, out of anyone who stood still for more than a minute, or 30 seconds if they had the sniper rifle equipped. I supposed you could look at the code for that mod.
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jul. 3rd, 2001
Posts: 20
|
No, i'm trying to do something else.
I'm trying to do, that if a person holds a Sniper Rifle in a certian radius for 10 minutes, than take his Sniper Rifle and don't let him take it again.
__________________
Etus - Mod Manager and Lead Programmer of Deadly Recover |
|
|
|
|
|
#4 |
|
It may go something like this
Call this function every 30 sec (but check if they've got the sniper rifle first) Check there location in the map Store the location in a temporary variable If the players location is the same as before add one to a counter when the counter equals 20 (2 calls every minute, thus giving you 10 minutes) remove the sniper rifle from their inventory, and flag a variable such as 'bIsCamper' Although everytime they pickup a sniper rifle you must validate whether or not they are a camper. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|