Team Spartan Cookies & Milk Forums
teleport function problem - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Expression 2 (https://teamscm.co.uk/forum-6.html)
+--- Thread: teleport function problem (/thread-2084.html)



teleport function problem - BurningPixels - 28-12-2016

Here is the problem:
Code:
@name teleport test @inputs Button Prop:entity @outputs @persist @trigger O = owner() if(Button == 1){ O:teleport(vec(4156, 9293, -6007)) }
When i set the entity in teleport fuction to me (owner()) everything works fine, but when i set the entitiy to Prop, it doesn't work anymore. Can someone help me?


RE: teleport function problem - 4N0NYM - 28-12-2016

as far i know you cant use "teleport" on a prop


RE: teleport function problem - ILoveYou - 28-12-2016

try to use setpos