Jump to content
ALPHIVE

How to male trigger spawn with height ?

Recommended Posts

Hi everybody !

 

I got a problem with the system i want to make :/ to explain you clearly i use the following code to make spawn ennemy units :

 

 

missionNamespace setVariable ["BAS_unitObject", (createGroup east) createUnit ["O_Soldier_F", thisTrigger, [], 0, "NONE"]];

 

 

Problem, when i place any structure, and i want the unit spawn ON the structure, the unit will just spawn at ground level, INTO the structure, that fucks the project i want to do :(

 

So the question is : do you have an idea about how i could make my ennemy unit spawn with height through the trigger ? i need to make them spawn at 5 meters

 

 

Thank you again for your awesome help you do everytime !

 

Share this post


Link to post
Share on other sites

I'm at work so I don't really have time for an indepth explanation but this link should help you get the ball rolling. 

 

PositionAGLS

 

See KKs example on how you can do it.

 

Another way would be to utilise buildingPos command to get them to appear inside the building. 

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

×