Jump to content
Sign in to follow this  
Ersk

How to spawn a single unit?

Recommended Posts

I have just started to learn the arma scripting language. I have managed to spawn 2 units together using the code below but I would like to spawn only 1 unit. Can someone tell me how to do that?

SoldierWPilot" createUnit [getMarkerPos "pilotSpawn", _newGrp,"", 0.5, "private"];

Thanks in advance.

EDIT

I had named my script init.sqf and have only just fount out that if you name the file "init" then the script will initialise at the start of the mission. Before I knew this I was also using "nil = []exec "init.sqf" which meant my script was being called twice, hence why it was spawning 2 units :P

Edited by Ersk

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×