I got most of the stuff sorted up thanks to theflamingskunk
But now what im triying to do is CLOSE the scaleform movie if its open(determinated by an bool variable) and if the Player Controller DOESNT have an current looking at target (determinated by an if statement)
So well here is the code and ill point the parts where i initiate the movie etc etc
SFHUDwrapper at post render event
and now my player controller and the player tick event where i update the LookAtTarget actor to the pawn being viewed one
thats pretty much it all i want to do is toggle the tooltipmovie off whatever the Trace inside tfpPlayerController result is none and the movie is being displayed becouse else right now once i get close to anything it shows well the tooltip but it never dissapears whatever my distance is
But now what im triying to do is CLOSE the scaleform movie if its open(determinated by an bool variable) and if the Player Controller DOESNT have an current looking at target (determinated by an if statement)
So well here is the code and ill point the parts where i initiate the movie etc etc
SFHUDwrapper at post render event
Code:
if(tfpPlayerController(PlayerOwner).LookAtTarget != None) //tfpPlayerController(PlayerOwner).LookAtTarget != None { if(!bIsTooltipOpen) { ToggleTooltip(); bIsTooltipOpen = true; bTest = true; TooltipMovie.SetTargetLoc(Canvas.Project(tfpPlayerController(PlayerOwner).LookAtTarget.Location)); TooltipMovie.Update(); } TooltipMovie.SetTargetLoc(Canvas.Project(tfpPlayerController(PlayerOwner).LookAtTarget.Location)); TooltipMovie.Update(); } if(bIsTooltipOpen == true) // if our tooltip is open { if(tfpPlayerController(PlayerOwner).bFocused == false) // check if we have an target if we dont then close it toggletooltip sets TooltipMovie.Close(false) whatever the movie is open { ToggleTooltip(); `log("if statement called"); } }
and now my player controller and the player tick event where i update the LookAtTarget actor to the pawn being viewed one
Code:
if(TraceHit.IsA('Actor')) // only show tooltip if we are looking at an item { LookAtTarget = TraceHit; bFocused = true; } bFocused = false;
thats pretty much it all i want to do is toggle the tooltipmovie off whatever the Trace inside tfpPlayerController result is none and the movie is being displayed becouse else right now once i get close to anything it shows well the tooltip but it never dissapears whatever my distance is
Comment