Code:
STRING bed1 = <double.mdl>;
STRING bed2 = <queen.mdl>;
STRING bed3 = <king.mdl>;
var bedNum = 1;
FUNCTION creation(buttonVar,panelVar){
IF (buttonVar == 1 ){ ent_create( "bed + bedNum" ,0,furn_action); }
}
basically i want to take the string bed and add what ever value the variable bedNum is equal too. so i'd end up with bed1. what is the correct syntax for this?
any help would be appreciated