Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-22-2005, 11:59 PM
ToNy_W ToNy_W is offline
Registered User
Join Date: Aug 2003
Location: Quebec
Posts: 130
ToNy_W is on a distinguished road
Send a message via AIM to ToNy_W
Grab and disabledefmovement

well i was just trying to make a npc that disables the player's movements when he grabs it but i got a problem, i figured out that when a player grabs something and is still pressing "a" when the movements get disabled, the player won't be able to move when the movements are enabled again, it will be like the player was still grabbing a wall, if you press the key to walk behinds it will begin to pull, though you're not pushing any keys...So is there a way i can fix the problem?
Reply With Quote
  #2  
Old 06-23-2005, 05:52 PM
RefinoheaT RefinoheaT is offline
Delteria Developer
RefinoheaT's Avatar
Join Date: Jun 2005
Location: New York, USA
Posts: 29
RefinoheaT is on a distinguished road
Send a message via AIM to RefinoheaT Send a message via MSN to RefinoheaT
I could fix it, but I don't know how to make somthing happen when someone grabs the NPC. If you post how you made that, I can add the way to make it only happen once.

-Refino

Edit: Oh, I was just gonna do it like, when he grabs the first time, this.grab=true, and then when enablemovements is set, this.grab-false;
__________________
+1 Post
--Staff Accomplishments--
Events Admin on Delteria
Events Admin on Babylon
Events Chief on N-Pulse
Events Developer on Delteria
Events Developer on N-Pulse
Developer on Delteria
LAT on N-Pulse
LAT on Shaded Legend
GP on N-Pulse
----------------------------

Last edited by RefinoheaT; 06-23-2005 at 07:01 PM..
Reply With Quote
  #3  
Old 06-23-2005, 06:26 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
if (!strequals(#m,grab)){ //I think #m is grab?
enabledefmovement;
}

Use a triggeraction, Refino.
__________________
Reply With Quote
  #4  
Old 09-13-2013, 09:49 PM
Starfire2001 Starfire2001 is offline
Unholy Nation
Starfire2001's Avatar
Join Date: Dec 2010
Location: The streets.
Posts: 156
Starfire2001 will become famous soon enough
Sorry to bump a thread from 2005, but just ran into the same problem. If you disabledefmovment() when a player grabs a chest or something and then enabledefmovement() after, they will be stuck grabbing and unable to move until they press A again. Anyone got a solution for this?
__________________
-Ph8
Reply With Quote
  #5  
Old 09-13-2013, 10:18 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
use freezeplayer() instead.
__________________
Quote:
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 +2. The time now is 10:53 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.