• Expression 2 Spinning Sawblade Script
    1 replies, posted
I'm a newbie at Expression 2, but basically what I'm trying to do is get a sawblade to hover over me and spin. Here is the expression that I've written so far: [code]@name Sawblade thing @inputs @outputs Gyro:angle @persist V:vector @trigger runOnTick(1) ################################################################ V = owner():shootPos() + vec(0,0,80) - entity():pos() E = entity() Gyro = -E:angles()*500 ################################################################ E:applyForce((V*25 - entity():vel()) * entity():mass()) E:applyAngForce(Gyro + $Gyro*5) [/code] The only problem is that it DOESN'T SPIN. How do I get it to spin?
Put this below "Gyro = etc" [code]Gyro = Gyro:setYaw(9999999999)[/code]
Sorry, you need to Log In to post a reply to this thread.