im using playmaker as a middle man of sorts on certain things but im having a hard time accessing the combatant component since its not an out side the dll script it dosent allow for me to access it correctly from playmaker. now from what i under stand i need to access the combatant component to access its status values. which i need to access in order to get the health variables and other variables from ork. is there a way to get this information. or do i need to make a script that accesses this information and store it so i can pull the info from that. but since its added at run time i dont see how it will be possible to grab the info in script either so im a little lost . or is it possible to get the combatant component not at run time ?
Otherwise you'll need to write a wrapper component that gets the component or data from ORK and passes it along to playmaker. This how-to explains how to get the combatant of a game object.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
AFAIK you'll need custom playmaker actions for any kind of interaction with ORK - e.g. the CombatantComponent only has a private reference to the actual combatant - accessing the data further is probably not possible with standard actions.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
The combatant object/class holds all the data of the combatant, which is handled by various sub-classes.
E.g. this code would give you the current value of the status value at index 0:
int value = combatant.Status[0].GetValue();
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
public int HP
{
get{ return combatant.Status[1].GetValue();}
set{ combatant.Status[1].SetValue(value, true, true, true, false, true, true);}
]
The SetValue function has some flag parameters (e.g. check death, check level up, etc.) - the component would need to access the Combatant Component as shown in the how-to I've linked above.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
The code is just an example for how properties are implemented.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
one question on this since im not setting the value back into ork all i would need to do is call the get value function int he script to get the values to store in playmaker? or do i still need the set value to store it with in the script?
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
combatant.Status[1].SetValue(value, true, true, true, false, true, true) = hp;
?
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames