ID:261300
 
How would i add a code that allows something to fly by using the "Take off" verb, any help would be great.
mob/verb/Take_off()
usr<<"You're flying!!"


There ya' go.
Might I direct you to [link]
It is a long post about "the fly code"
In response to Evilkevkev
He didn't ask for "The fly code" I'll give that one to him, he asked how to add a code to his code.
In response to Nadrew
No, thats not what i mean, so you are actauly flying and can go over stuff with Density=1

So you may enter a Aircraft Press Take off and be able to Fly,

any help?
In response to Nadrew
Yeah i need an example so i can see how i can input it.
In response to Super saiyan3
Ok I'm in a *sort of* good mood today:

mob
var
isflying = 0

mob/verb/Take_Off()
if(usr.isflying)
usr<<"You land"
usr.isflying=0
else
usr<<"You take off!"
usr.isflying=1

turf/flyzone
icon='wall.dmi'
Enter(mob/M)
if(M.isflying)
return..()
else
return 0


This will allow you to fly over only certain things when flying, and your density will still be one.
In response to Nadrew
Wont that mean i will have to add flying as a var?
In response to Super saiyan3
That code already added the var

mob
var
isflying = 0


Did it.