ID:162929
 
i know i saw this somewhere but now i cant find it please help!!

how do i make usr switch icons or ie get into a car
You could... just swap variables and add the car into a list or a place holder.. Or somthing. Heres an example...



mob/verb/Get_Car()
for(var/obj/car/C in get_step(src,src.dir))
src.loc=C.loc
src.icon=C.icon
src.icon_state=C.icon_state
C.Move(usr)
return//this is here so it doesnt get in multiple cars, if there is more then one in a single place.


That would pretty much make you the car, And make the car goto your inventory. Just move the car out of your inventory when exiting it. And Change your vars back to normal.

(Thats an easy way it can be done... Maybe not the best way to do it though, Ecspecially if you want passengers etc.)
A car demo? Here is mine http://developer.byond.com/hub/Poal/CarCode

But its VERY simple and probably not what you're looking for.