Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / How To Restrict Movement?

Author
Message
Calkins88
14
Years of Service
User Offline
Joined: 3rd Nov 2011
Location: Illinois, U.S.A.
Posted: 31st Jul 2012 00:08
I am making a game and want to restrict my character from being able to move to a different location. Like if you press a,s,w,z he can't move. is there any coding that I need to get that to be possible? Thank you.
Ertlov
19
Years of Service
User Offline
Joined: 18th Jan 2007
Location: Austria
Posted: 31st Jul 2012 00:26
Scripting:

plrfreeze=X

X is the time of freeze in milliseconds.

Come to where the madness is:http://www.homegrowngames.at
Troutflies
15
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 31st Jul 2012 00:41
As Ertlov said so eliquently, scripting.

You will probably have to attach it to a triggerzone to get the engine to run it when needed.
unfamillia
15
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 31st Jul 2012 21:41
Quote: "plrfreeze=X

X is the time of freeze in milliseconds."


Is it not as below?

Plrfreeze=0 - Player not frozen at all
plrfreeze=1 - the player is stationary, but the mouse can move the head around
plrfreeze=2 - the player and the head are both still.

But, this could be just in MysticMod (I am an X10 user)

unfamillia

[url=www.touchoffear.webs.com][/url]
Calkins88
14
Years of Service
User Offline
Joined: 3rd Nov 2011
Location: Illinois, U.S.A.
Posted: 1st Aug 2012 05:51
Im still having a problem getting it to work. hmm. What could I be doing wrong?
Calkins88
14
Years of Service
User Offline
Joined: 3rd Nov 2011
Location: Illinois, U.S.A.
Posted: 1st Aug 2012 06:10
Never mind I figured it out YES!

;Artificial Intelligence Script

;Header

desc = Freeze player when in zone

;Triggers

:state=0,plrwithinzone=1:plrfreeze=999999999,state=1

Login to post a reply

Server time is: 2026-07-03 23:24:58
Your offset time is: 2026-07-03 23:24:58