When i trigger sensor, IPO animation plays instantly and that’s OK(1 Example). But strange delay appears when I want to set all parameters manually with Python(2 Example). Then I have to trigger sensor twice, before it plays?!? Why?
Try taking your last line (where it activates the actuator) out of the nest (remove the indentation on the line)… (make sure your IPO actuator (apparently, we have to say F-curves now, but I refuse! :D) is set to something that is negligible like start: 1 and End:1 in the logic bricks, so that if the properties aren’t changed, it won’t go haywire)
The line was only executed if the sensor was active when the script was activated, hence the need to double activate (one to start the script, one to execute the line) but without the if statement, the actuator is activated whenever the script is activated…