![]() |
Proper Keydown?
How is the best way to keep testing for a player to touch a NPC and hit A?
if(playertouchsme&&keydown(5)){ message hi; } makes it so u have to hold A and run at the NPC. Im just trying to figure out some way so a player can already be touching a NPC and hit a and it works. Loriel did it on his mini game on londeroth but I really have no clue how. Any ideas? |
-=Josey=-
I'd use something like: if (created){ timeout=.05; } if (timeout){ if (playertouchsme&&keydown(0)){ message o.0; } timeout=.05; } |
events dont work well within events
yes, if (playertouchsme && keydown(5)) would be a good way to do it |
Quote:
Kai, i didnt ever understand the way you explained =/ sorry |
Quote:
NPC Code: i have no honest idea if that would work but give it a shot ... |
um as Londeroth Admin I can tell u that this is not something like this... we use a script in our system NPC that triggers in front of the player when u press a so this Minigame NPC just gets a triggeraction...
|
Quote:
|
Quote:
|
Quote:
|
is trigger action allowed? I thought it wasn't...
|
Androk is the one who said it wasnt, he had me worried.
|
Quote:
|
| All times are GMT +2. The time now is 07:14 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.