Stopping/Freezing a player
Been tooling around with this, but I thought I'd see if I could get some input. Anyone know a way to stop or freeze a player? I just need them to not be able to move; the rest (shooting, nades, etc) isn't important.
|
Well I know the TFC server had "pause" built into it, haha...
ADMIN: -pauses the game- "Are you guys gonna play nice?" Everyone was crying moar that day, so he basically just froze the game haha... |
Yeah, there's a FROZEN flag you can set on players, and I imagine Lua can do it...but Mulch or Jon are probably the ones to ask in that regard. I still think Lua's the devil ;)
Or maybe setting a 0% speed effect? Dunno... |
we used the freeze flag in some of our previous bot training to freeze the player while the bot explained shit
|
Quote:
|
Quote:
|
Semi related. I need to see if there is a way to prevent a player from shooting or throwing nades in an area but still move.
|
Quote:
Player shooting I'm not sure about (I think you can block/remove projectiles but I'm not sure how), but you can strip all weapons or all ammo using: Code:
player:RemoveAllAmmo(true) |
Thanks I'll give those a try.
|
I exposed the functionality to the bot scripting. I don't think its currently available to the FF scripting. It's easy to add though if its not already.
|
Quote:
|
All times are GMT. The time now is 05:46 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.