I'm trying to write some functions universal for several actors, but i don't know how to change actors parameters, using a char variable with actors name. For example:
- Code: Select all
void ChangeAngle(char actorname[32], int newangle) {
if (...something...){
actorname.angle = newangle;
}
}
This doesn't work. I've tried to use brackets in actorname.angle, but had no result.
It"ll be nice if someone could help me.
P.S. Sorry if its something wrong with my english)