How would i set a movment delay when someone walks in, so when they get on roler blades, a bike or in a car its faster?
would it be like
mob
login
set_movmentdelay = 1.5
then
obj
bike
verb
get_on
switch (usr.icon = "bike.dmi)
set_movmentdelay = 0
get_off
switch (usr.icon = "base.dmi")
set_movmentdelay = 1.5
ID:161848
Mar 24 2008, 2:39 pm
|
|
In response to Demon_F0rce
|
|
ty
|
In response to RanEsu
|
|
Actually, i know where to put it now, i just need to know what code i would put in to make someone move slower... :(
|
In response to RanEsu
|
|
RanEsu wrote:
Actually, i know where to put it now, i just need to know what code i would put in to make someone move slower... :( spawn a proc that sleeps for a few ticks before setting an allow movement variable back to true. |
In response to Obs
|
|
what would that code be? sleep wouldent work, so idk how to do it :(
|
In response to RanEsu
|
|
mob/var/tmp/moving |
In response to Dragonn
|
|
Dragonn wrote:
mob/var/tmp/moving Thanks, it works exeactly how i want it to, but what would i put on this to make it go faster? obj |
In response to RanEsu
|
|
It should work perfectly. Just add that as a new thing (code provided by Dragonn) altogether.
|
In response to Demon_F0rce
|
|
tnks but i ended up just doin somthin like this (im @ a different comp. so im re-writeing it, bleh :< )
mob/var/tmp/moving |
mob/var/set_movementdelay=1.5
since if a mob logs in on a bike, they wont slow down. Remember you also need a proc for the movement delay.