spelmo3 4 Posted February 1, 2021 just making a simple addaction script to recruit units. its been throwing a few errors but my syntax seems correct. but im missing something. for now this is the problem line. this addAction ["<t color='#00bbdd'>Recruit Rifleman","B_RangeMaster_F" createUnit [position player, group player],"",nil,1.5,true,true,"","",5]; ^^ my script has about 8 of these lines for each unit. but im just testing it with the one line. no errors when in the init show until i start the playtest. then i get that its missing bool expression at " this |#|addAction..." any thoughts? originally i just thought the sqf was being excuted/called wrong but the in editor init has the same error Share this post Link to post Share on other sites
gc8 977 Posted February 1, 2021 Put the script inside: { code here } that's at least one problem 1 Share this post Link to post Share on other sites
killzone_kid 1330 Posted February 1, 2021 46 minutes ago, spelmo3 said: but my syntax seems correct Your syntax is incorrect, second argument is an expression ("B_RangeMaster_F" createUnit [position player, group player]) and will execute immediately returning nil, while code or string is expected 1 Share this post Link to post Share on other sites
spelmo3 4 Posted February 1, 2021 59 minutes ago, killzone_kid said: Your syntax is incorrect, second argument is an expression ("B_RangeMaster_F" createUnit [position player, group player]) and will execute immediately returning nil, while code or string is expected your right. also noticed on the bis page you added about the alt syntax also being outdated. which is also what i'm using. going back to drawing board on this one. 1 Share this post Link to post Share on other sites