Scripts / Can i freeze the player ?

Author
Message
RvD
8
Years of Service
User Offline
Joined: 17th Feb 2016
Location:
Posted: 9th Jul 2016 19:15
I really can't find any command to freeze the player.. am trying to make it like when the player reaches a zone or a spot he just can't move With his W and A and S and D just like if they keyboard disconnected either with a few seconds or till the level is over.
PM
Nathan38
13
Years of Service
User Offline
Joined: 13th Feb 2011
Location:
Posted: 9th Jul 2016 19:19
Yes, just put FreezePlayer() in your script when you want to freeze the player
RvD
8
Years of Service
User Offline
Joined: 17th Feb 2016
Location:
Posted: 9th Jul 2016 19:26
So i just create a script like that.

for example.
function freeze_init(e)
end
function freeze_main(e)
FreezePlayer()
End
And i attach it to a zone right ?
PM
Nathan38
13
Years of Service
User Offline
Joined: 13th Feb 2011
Location:
Posted: 9th Jul 2016 19:35 Edited at: 9th Jul 2016 19:37
Not quite, you would also need to let the zone know that the player is actually in the zone, so you would write:

RvD
8
Years of Service
User Offline
Joined: 17th Feb 2016
Location:
Posted: 9th Jul 2016 19:41
I see thank you.
PM

Login to post a reply

Server time is: 2024-05-03 21:41:58
Your offset time is: 2024-05-03 21:41:58