mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 08:03:43 +01:00
Merge pull request #9051 from Anasari/ConfirmationPossess
Add confirmation prompt to possess object
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
|
||||
var/turf/T = get_turf(O)
|
||||
|
||||
var/confirm = alert("Are you sure you want to possess [O]?", "Confirm posession", "Yes", "No")
|
||||
|
||||
if(confirm != "Yes")
|
||||
return
|
||||
if(T)
|
||||
log_admin("[key_name(usr)] has possessed [O] ([O.type]) at ([T.x], [T.y], [T.z])")
|
||||
message_admins("[key_name_admin(usr)] has possessed [O] ([O.type]) at ([T.x], [T.y], [T.z])", 1)
|
||||
@@ -42,4 +46,4 @@
|
||||
usr.loc = O.loc // Appear where the object you were controlling is -- TLE
|
||||
usr.client.eye = usr
|
||||
usr.control_object = null
|
||||
feedback_add_details("admin_verb","RO") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
feedback_add_details("admin_verb","RO") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
Reference in New Issue
Block a user