ID:259448
 
is there something that would take the opposite of something? If not make that a suggestion.
is there something that would take the opposite of something? If not make that a suggestion.

Hee hee! This could mean a lot of different things. Do you mean that an icon would be converted to a photographic negative? Or a text string "black" would be converted to "white"? Or maybe just the old Boolean "not" that would convert 0 to 1 and vice-versa? I think we'll need a little more clarification.
In response to Gughunter
lol good point! What i want is more with the direction of a mobile or a var. like if the mob was facing North make it face south.
In response to Air _King
Simplest method is to use the turn proc and turn them 180 degrees.

-AbyssDragon
In response to AbyssDragon
yeah, i tried that,but i figured out its not that. Somethings not working right.

[EDIT]
I said that wrong the second time. I meant with the move proc.
[/EDIT]
In response to Air _King
yeah, i tried that,but i figured out its not that. Somethings not working right.

Hmm... unless there's a bug in the version you're using, dir = turn(dir, 180) should do the trick.
In response to Gughunter
im trying:
client
North()
dir=turn(src.dir,180)


and it moves them clear to the other side of the screen. see my other post too.
In response to Air _King
Air _King wrote:
im trying:
client
North()
dir=turn(src.dir,180)


and it moves them clear to the other side of the screen

Weird... setting dir shouldn't change the mob's location on the map. One thing you might try is using mob.dir instead of src.dir.
In response to Gughunter
Its REALLY MESSING UP!!! EAST and WEST sometimes work and other time they send you clear acrost the map. then when i try step(src,NORTH) nothing.
In response to Air _King
Air _King wrote:
Its REALLY MESSING UP!!! EAST and WEST sometimes work and other time they send you clear acrost the map. then when i try step(src,NORTH) nothing.

You are changing client.dir. This changes the way the client viewport faces. There is no problem with BYOND in this case.
In response to Spuzzum
ummm... only if i do that? not mess with other direction procs?
In response to Air _King
Air _King wrote:
ummm... only if i do that? not mess with other direction procs?

You need to change src.mob.dir (the player's mob's dir), not src.dir (the player's client's dir).

turn(dir, angle) works all right for me. =)