Jump to content
Sign in to follow this  
Pundaria

hop in and play?

Recommended Posts

Usually I join a game, a unit is created for which is not defined in editor before hand. How is this made? :confused:

Share this post


Link to post
Share on other sites

Hi.... It is spawned by a script using the command createUnit.

_unit = "soldierWB" createUnit [getMarkerPos "barracks", _groupAlpha];

Share this post


Link to post
Share on other sites

how to define "when a player join the game"?

And what is "soldierWB"?

Share this post


Link to post
Share on other sites
_unit = "soldierWB" createUnit [getMarkerPos "barracks", _groupAlpha];

You can run it in your script and time when a unit will be spawn you can set yourself. Than you can switch the player on the created unit by the help selectPlayer.

And "soldierWB" is name of unit in the game which is defined in CfgVehicles class.

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  

×