![]() |
Lol,
Yes it is :). -Night fox |
How would a player place an item then? putnpc?
|
Something like:
if (playerchats&&strequals(#c,lay down <weaponname>)) { this.x = {0.5,-0.5,0.5,2.5}; this.y = {-1,1,3,1}; putnpc weaponimage,weaponcode,this.x[playerdir],this.y[playerdir]; destroy; } That is just for laying weapons so it would need more code, but it's a good start. |
Quote:
this.y = {-1,1,3,1}; what is that |
Quote:
|
It would be fairly simple, but if you wanted to do a lot of very advanced stuff, it could become a "var hogger".
|
Quote:
setting arrays so that it will put the npc at a certain spot depending on which way you are facing |
I MUST LEARN :)
|
Quote:
NPC Code: this would only put a weapon at those cordinates, you would have to do, playerx+this.x[playerdir] and player.y+this.y[playerdir] also, if you face left |
Markets
O kool! lol
|
Re: Markets
Quote:
|
All times are GMT +2. The time now is 06:54 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.