mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-19 10:07:19 +01:00
17 lines
475 B
Plaintext
17 lines
475 B
Plaintext
/mob/living/proc/toggle_rider_reins()
|
|
set name = "Give Reins"
|
|
set category = "Abilities"
|
|
set desc = "Let people riding on you control your movement."
|
|
|
|
if(riding_datum)
|
|
if(istype(riding_datum,/datum/riding))
|
|
if(riding_datum.keytype)
|
|
riding_datum.keytype = null
|
|
to_chat(src, "Rider control enabled.")
|
|
return
|
|
else
|
|
riding_datum.keytype = /obj/item/weapon/material/twohanded/riding_crop
|
|
to_chat(src, "Rider control restricted.")
|
|
return
|
|
return
|