I want to get transform of creatures that is spawned from creature spawner. And I want to know each creature’s transform. How do you do?
I haven’t really used creatures before in verse but you should be able to get the agent of the creature from the “SpawnedEvent”
and then with
if(FortChar:=Agent.GetFortCharacter[]):
you should be able to get the fort character of the creature and with
FortChar.GetTransform()
you should be able to get its transform
Thanks for your solution. I have 1 more question.
I want to know creatures transform. I mean, if there is creature spawner and spawn few creatures.
Then how can I get the first creature’s transform and the other’s at the same time?
Can I save their transform into each variables? Do I need to use array for that?
I’m sorry for questioning too many. Have a nice day.
Yes you can use an array to store many creature’s transforms
var MyCreatureArray : []fort_character = array{}
set MyCreatureArray += array{MyZombiesFortCharacterHere}
just make sure to also remove the creatures from the array when they die
I have one more question sorry again
How do I know which array number the creature that has been eliminated is?
When one of them died, he got the number of array. And I want to pick that up. Can you help me?
I don’t think this is the best solution but what if you run through the entire array comparing the creatures till you found the one equal to the creature eliminated?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.