ID:261652
 
I was wonder if someone could help me with sum certain coding, like how to make it so when you take control of someone/something, that you can see exactly what they see.

Another topic, how can I make it so when you step on a switch that something will happen to a certain turf? Should I use bump()?
Insomniac Xx wrote:
I was wonder if someone could help me with sum certain coding, like how to make it so when you take control of someone/something, that you can see exactly what they see.

Try using client.eye(src)

Another topic, how can I make it so when you step on a switch that something will happen to a certain turf? Should I use bump()?

If its step "ON" a switch, try obj/switch/Entered()
In response to Kyo Kusanagi
Entered() proc doesn't seem to apply with objs or mobs unless they are entered by someone via the Move() proc.
In response to Kyo Kusanagi
Kyo Kusanagi wrote:
Insomniac Xx wrote:
Another topic, how can I make it so when you step on a switch that something will happen to a certain turf? Should I use bump()?

If its step "ON" a switch, try obj/switch/Entered()

The Entered() proc is triggered when something moves into the contents of the atom, not when something moves into the same turf with it. I wrote little tutorial about this on BWICKI: http://www.deadron.com/byond/ByondBwicki.dmb?TriggeredObjs
In response to Kyo Kusanagi
Kyo Kusanagi wrote:
Insomniac Xx wrote:
I was wonder if someone could help me with sum certain coding, like how to make it so when you take control of someone/something, that you can see exactly what they see.

Try using client.eye(src)

Another topic, how can I make it so when you step on a switch that something will happen to a certain turf? Should I use bump()?

If its step "ON" a switch, try obj/switch/Entered()
What if you had the pull the switch?
In response to Insomniac Xx
Well i got 2 types for you.

One is the click version
obj/switch
var switch = "Off"
Click()
if(src.switch == "Off")
src.switch = "On"
[Insert what you intend to do to an Off to On Switch]
else
src.switch = "Off"
[Insert what you intend to do to an On to Off Switch]

The other version involves oview and verb ;). But im too lazy to be concerned with that since noone can solve mine :(
In response to Kyo Kusanagi
Thanks a lot