On my own function, using the flowgraph i see a plain line, where when i connect to the Collision() script I see the 'marching' dots along the line, if that makes sense. It gets triggered in the Collision() function of the elevator script, even though I change it to calloutputs("Collidex").. somehow it still triggers in the Collision() function.
Trigger script:
function Script:Collision(entity, position, normal, speed)
if self.enabled then
self.component:CallOutputs("Collision")
end
end
elevator script:
function Script:Collidex()--in
System:Print("Triggered here.!.")
end
function Script:Collision(entity, position, normal, speed)--in
if (self.window==nil) then self:Start() end
System:Print("Triggered in collision function..!.")
if self.window:KeyDown(Key.E) then
self.entity:Move(0, 0, -0.001)
entity:SetGravityMode(false)
else
entity:SetGravityMode(true)
end
end