My attempted code
Code: Select all
:i function $PointRail$
:i call $Vibrate$ arguments
$Actuator$ = %i(0,00000000)$Percent$ = %i(50,00000032)$Duration$ = %f(0.100000)
:i call $Obj_SpawnScript$ arguments
$PointRailSparks$
:i call $BroadcastEvent$ arguments
$Type$ = $SkaterPointRail$
:i $SetTrickName$%sc(10,"Natas Spin")
:i $SetTrickScore$%i(50,00000032)
:i $Display$
:i call $Goto$ arguments
$Airborne$$Params$ = :s{$AllowVibration$:s}
:i call $OnExitRun$ arguments
$Natas_Exit$
:i $Block$
:i endfunction
:i function $Natas_Exit$
:i call $Vibrate$ arguments
$Actuator$ = %i(0,00000000)$Percent$ = %i(0,00000000)
:i $SetTrickName$%sc(0,"")
:i $SetTrickScore$%i(0,00000000)
:i call $Display$ arguments
$Blockspin$
:i endfunction
:i $natas_exit_speed$ = %i(300,0000012c)
:i function $ExitPointRailSpin$
:i $StopBalanceTrick$
:i $NoRailTricks$
:i call $Obj_KillSpawnedScript$ arguments
$Name$ = $turn_on_rail_tricks$
:i call $Obj_SpawnScript$ arguments
$turn_on_rail_tricks$
:i if $UpPressed$
:i if $RightPressed$
:i call $CheckNatasExitDirection$ arguments
$dir$ = $UpRight$
:i else
:i if $LeftPressed$
:i call $CheckNatasExitDirection$ arguments
$dir$ = $UpLeft$
:i else
:i call $CheckNatasExitDirection$ arguments
$dir$ = $Up$
:i endif
:i endif
:i else
:i if $DownPressed$
:i if $RightPressed$
:i call $CheckNatasExitDirection$ arguments
$dir$ = $DownRight$
:i else
:i if $LeftPressed$
:i call $CheckNatasExitDirection$ arguments
$dir$ = $DownLeft$
:i else
:i call $CheckNatasExitDirection$ arguments
$dir$ = $Down$
:i endif
:i endif
:i else
:i if $RightPressed$
:i call $CheckNatasExitDirection$ arguments
$dir$ = $Right$
:i else
:i if $LeftPressed$
:i call $CheckNatasExitDirection$ arguments
$dir$ = $Left$
:i endif
:i endif
:i endif
:i endif
:i call $SetSpeed$ arguments
$natas_exit_speed$
:i $Jump$
:i $DoNextTrick$
:i call $Ollie$ arguments
$OutAnim$ = $Natas_spin_out$$JumpSpeed$ = %i(0,00000000)
:i endfunction
:i function call $turn_on_rail_tricks$ arguments
$time$ = %i(10,0000000a)
:i $Wait$%GLOBAL%call $time$ arguments
$frames$
:i $AllowRailtricks$
:i endfunction
:i function $PointRailSpinBail$
:i $SetSpeed$%i(200,000000c8)
:i $PitchBail$
:i endfunction
What do i need to do to get this to work?