So i find mysewlf in a point that i need to start programming a campaign, means a story driven gameplay.
The first thing i need to program is that whenever player finds a tree on the way, Something will happend, ex. A new messsage will be displayed, new sound will be played, just when a tree it’s found.
How would you guys code that, the thing is there are delegates, atleast in UE4 wich i know how to use, but how to use them in UDK =? any ideas?
I use a simple actor with a array using variables in a struct. Each array item is a steep of the mission.
Steps are things like kill a NPC, get some item, arrive to some location, etc. The actor spawn the required pawn/item/mark in hud, etc, in every steep.
Pawns and items have some variable linked to the mision actor. The mission can fill the variable in the pawn at the steep start, so when the pawn is destroyed, it calls the mission to notify the event. Or the item when is taken.
NPC’s can assign missions to the player from their dialogs.
Other way to do it is to controll all from the mission actor, using a state with some sleep, and check if the steep is done (dead pawn, items, location, etc).