python - setPosFrequency

(Abracsis) #1

if owner.Ship == 8: ##Cathral
maxsp = 18
owner.Sens = 2
Pow.Power = 25

It says in the python docs i have to use an int flag for the setUsePosPulseMode? is that just an int?

maxsp will be created with maxsp = 18 yes? but is ist accessable from outside that block?

whats wrong with that code dammit!!!


p.s thanx :wink:

(saluk) #2

I believe setUsePosPulseMode is looking for either a 1 or a 0, a 0 being DON’T use a positive pulse and 1 being USE a positive pulse. maxsp will only be available outside the if statement if the if statement is executed.