Minor Changes
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
Regular → Executable
+7
@@ -7,4 +7,11 @@ this.on_update = function()
|
||||
local deltaMouseMovement = Input.getDeltaMousePos()
|
||||
this.angles.x = this.angles.x - deltaMouseMovement.y * this.mouse_sens
|
||||
this.eulerAngles = this.angles
|
||||
|
||||
if Input.getKeyJustPressed(Input.KeyCode.O) then
|
||||
box = loadPrefab("prefabs://BrainStem.pf")
|
||||
box.position = this.worldPosition + (this.forward * 2)
|
||||
boxBody = box:getComponent(Rigidbody)
|
||||
boxBody:addForce(this.forward * 3000)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user