News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Mapping

Reply
 
Thread Tools Display Modes
Old 5th Jul 2001, 04:24 AM   #1
Etus
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
Etus is offline   Reply With Quote
Old 5th Jul 2001, 04:37 AM   #2
aspie
It's all good baby.
 
aspie's Avatar
 
Join Date: Feb. 24th, 2001
Location: Australia
Posts: 315
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.
aspie is offline   Reply With Quote
Old 5th Jul 2001, 04:54 AM   #3
Etus
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
Etus is offline   Reply With Quote
Old 6th Jul 2001, 02:44 AM   #4
aspie
It's all good baby.
 
aspie's Avatar
 
Join Date: Feb. 24th, 2001
Location: Australia
Posts: 315
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.
aspie is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:41 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer