How to access an array element from a pointer?

You need to deference the array pointer to use the [] operator.

ASSpawnPoint* SpawnPad = SpawnPads[RandomSpawnerInt];

to

ASSpawnPoint* SpawnPad = (*SpawnPads)[RandomSpawnerInt];
3 Likes