Announcement

Collapse
No announcement yet.

Using both c++ and blueprint

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Originally posted by skeeta92 View Post
    Im using the FPS script that came with UE4 and it came with the custom hud and crosshair which works fine..the problem that i am having is that i cant get it to use my blueprint functions. For testing i tried printing a string to the screen but doesnt work. I used the Hud.h and MyCustomHUD.h as the parent but either didnt work...what im i doing wrong? Am i suppose to grab it with the c++ code ? If so how do i do that with the HUD class?
    Did you change your project settings so that they use the new blueprint class instead of the normal Hud/CustomHud?
    There already are a bunch of blueprinted events which will be triggered for all blueprints which are Actors.

    Leave a comment:


  • replied
    could you post the blueprint you made?

    Leave a comment:


  • replied
    In C++, you might want to have a look at GetWorldTimerManager().SetTimer(...), GetWorldTimerManager().ClearTimer(...) and "friends".
    Last edited by GreenEyed; 04-08-2014, 11:38 AM.

    Leave a comment:


  • replied
    You still need an entry point in Blueprints. Usually a good entry point is an event which is called by C++ such as Begin Play. In the cast for the HUD, you probably want to use the Post Render event. In terms of using timers in blueprints, the functions set, get and clear a timer are available.

    Leave a comment:


  • replied
    Originally posted by skeeta92 View Post
    Im using the FPS script that came with UE4 and it came with the custom hud and crosshair which works fine..the problem that i am having is that i cant get it to use my blueprint functions. For testing i tried printing a string to the screen but doesnt work. I used the Hud.h and MyCustomHUD.h as the parent but either didnt work...what im i doing wrong? Am i suppose to grab it with the c++ code ? If so how do i do that with the HUD class?
    Anybody know a easy way to do a timer using blueprint or c++ ?

    Leave a comment:


  • started a topic Using both c++ and blueprint

    Using both c++ and blueprint

    Im using the FPS script that came with UE4 and it came with the custom hud and crosshair which works fine..the problem that i am having is that i cant get it to use my blueprint functions. For testing i tried printing a string to the screen but doesnt work. I used the Hud.h and MyCustomHUD.h as the parent but either didnt work...what im i doing wrong? Am i suppose to grab it with the c++ code ? If so how do i do that with the HUD class?
Working...
X