copyent only if entity targeted
This commit is contained in:
+11
-8
@@ -295,15 +295,18 @@ const listaverage [ push sum "" ; looplist $arg1 n [ +=f sum $n ] ; if (strlen $
|
||||
|
||||
tempalias pasteent [if $editing [echo no entity copied, yet]]
|
||||
const copyent [
|
||||
if $editing [
|
||||
push n (format2 "%1 %5 %6 %7 %8 %9 %010 %011" (editentity (getclosestent)))
|
||||
push d (switch (findlist "mapmodel sound" (at $n 0)) [mapmodelslotname (at $n 2)] [at (editmapsoundslot (at $n 1)) 0])
|
||||
pasteent = [if $editing [if $editmetakeydown [showmenu [Paste entity]] [newent7 @@@n ; echo @@@n @@@d pasted.]]]
|
||||
newmenu [Paste entity]
|
||||
menuitem [paste: @n @d] [newent7 @n ; echo @n @d pasted.]
|
||||
echo $n $d copied.
|
||||
pop n d
|
||||
if $editing [
|
||||
entidx = (getclosestent)
|
||||
if (> entidx -1) [
|
||||
push n (format2 "%1 %5 %6 %7 %8 %9 %010 %011" (editentity ))
|
||||
push d (switch (findlist "mapmodel sound" (at $n 0)) [mapmodelslotname (at $n 2)] [at (editmapsoundslot (at $n 1)) 0])
|
||||
pasteent = [if $editing [if $editmetakeydown [showmenu [Paste entity]] [newent7 @@@n ; echo @@@n @@@d pasted.]]]
|
||||
newmenu [Paste entity]
|
||||
menuitem [paste: @n @d] [newent7 @n ; echo @n @d pasted.]
|
||||
echo $n $d copied.
|
||||
pop n d
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
const newent7 [ // like newent, but setting all seven attributes directly
|
||||
|
||||
Reference in New Issue
Block a user