This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hello everyone!
I'm starting to recreate my BP scripting into C , and I'm running into an issue with trying to get my C Actor to pull data from my C actor component.
My goal is to create a Fire and Reload function in the Weapon (C Actor) using data from the ActorComponent. The ActorComponent has the variables for Damage, Ammo, ReloadSpeed, etc. However, I cannot edit the variables from the the BP Weapon, trying to print out the default values returns null. Trying to fire from the C function crashes the game using a variable from the actor component.
I want to be able to edit the ActorComponent variables from BP and call C functions from within Blueprint.
Here is the Weapon.cpp file where I'm creating the ActorComponent
In the Weapon.h file, I'm including the ActorComponent (\"WeaponStatsComponent.h\"
Here is the Base Weapon Blueprint, with the Actor Component highlighted.
EDIT #1: Including more pictures
Base Weapon Blueprint with C ActorComponent highlighted (note the blank details panel)
Subreddit
Post Details
- Posted
- 6 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/unrealengin...