Jump to content
Sign in to follow this  
IronSight94

Generating units...

Recommended Posts

I have been using mrmurray's ArmA 1 editing guide and it works but I have a problem. I want to generate some enemies in a town after a helicopter insertion. I can get the unit to generate with this code:

"MOL_Rifleman" createUnit [position player, S1, "Name1=this",0.7,"Corporal"]

But they generate on my location. How do I get them to generate in the town?

Share this post


Link to post
Share on other sites

That's because you have it set to spawn on the players location.

Create an empty>object>H (invisible) and name it "enemyspawn". Place this where you want the enemy to spawn.

Then use the following instead.

"MOL_Rifleman" createUnit [position enemyspawn, S1, "Name1=this",0.7,"Corporal"]

Share this post


Link to post
Share on other sites

Still doesn't seem to work. I have it set up so that once the player reaches a waypoint the enemy spawns. I get to the waypoint and nothing happens.

Edited by IronSight94

Share this post


Link to post
Share on other sites

Markers don't exists as variables in the usual meaning. You have to do it like this:

"MOL_Rifleman" createUnit [getMarkerPos "enemyspawn", S1, "Name1=this",0.7,"Corporal"]

Or is empty>object>H (invisible) not a marker?

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  

×