So I am trying to do the first part to the code for the “Macros starting with UPROPERTY” video… So far as I can tell, there is no difference between what Ben put in and what I have inserted (everything to this video seems to be working the way it should) but the command is giving me an error… My code can be seen below (from the OpenDoor.h header file):
// Called every frame
virtual void TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction ) override;
Hey, thanks for the response. What do you mean compile it in the editor? I tried compiling it in VS and what I thought were the most relevant errors are in the image. If you wan t to see the other error in completeness, I can get you it… Like I said, the only thing that I actually changed in the file was the:
Right, I completely missed that the error is coming saying that it is coming from the .cpp file not the header file… Apparently a bracket had been added to this line. I fixed that and now the project compiles. Thanks all for the help!
I don’t know what’s happened but now i add it ATriggerVolum property and the problem was solved both of them (Open Angle and Pressure Plate) is visible, but without Pressare Plate Open Angle did not appear.
by the first line ATriggerVolume* PressurePlate connect the TriggerVolume object (which is in Unreal editor).
by the second line ActorThatOpens connect Default Pawns
and outcome this ATriggerVolume* PressurePlate pointer object take the adress of TriggerVolume Unrela object
likewise AActor* ActorThatOpens pointer object take the adress of Default Pawns
is my judgement right?
and last what is the Default Pawn? as I guess it’s Player, body of the game