I am trying to create a clone of a certain actor named "grassTileSet". I have created a function that creates a random number and chooses an array index. I have placed that array index into an integer named nextTile. I want to use nextTile to define the second parameter of the CreateActor function. I get an error that says "suspicious pointer conversion" and the program won't execute when I try to run it. I have tried converting nextTile to a char but I guess I've been unsucessful. If anyone can give me some ideas, please help. Thanks!
- Code: Select all
CreateActor("grassTileSet", nextTile, "(none)", "(none)", 32, 0, false);