ID:162924
 
ok i have my mob going in and out of cars and i have a shop keeper

I want to be able to buy a car from a shop make it that persons car so no one else can drive it and make it so the car appears in front of the shop keeper?

i guess all i need is the code for to make it a personal item
and the code to have the car appear in front of the shop keeper
make an obj var called owner or something and when a person buys the car, its owner var is changed.
In response to Scizzees (#1)
obj/var/owner(usr.ckey)

should i define it only when the item is bought?
and put this to 0 or something?
In response to Kylemark (#2)
obj/var/owner

When its been bought, create it.
var/K=new/obj/car(usr.loc)
K:owner = usr
In response to Scizzees (#3)
Scizzees wrote:
> obj/var/owner
>

When its been bought, create it.
> var/K=new/obj/car(usr.loc)
> K:owner = usr
>


!!!!! K.owner!!!!!!
:=BAD!