Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
TJ_au

Playable units using createunit

Recommended Posts

Is it possible to create playable units using the createunit command. I would like to be able to add playable ai reinforcements for group respawn missions and to be able to dynamically create units which are teamswitchable too in SP.

Share this post


Link to post
Share on other sites

I cannot get single player team switch to work for any unit that was not set as playable in the mission editor using the setPlayable command.

Share this post


Link to post
Share on other sites

yes, I did this while working on spawn@leader

if a unit died it was replace.....worked in MP so should work in SP

Share this post


Link to post
Share on other sites

edit: try addSwitchableUnit for single player

hmmm, using the setPlayable command crashes ArmA for me in a server/player test mission. Version 1.05.5136

In a dedicated server, the trigger either has no effect, or on one playing of the same mission it changed the player controlled unit to bob (the original player unit keeps my name and appears not to be under control of AI), but does not create any more slots available to other players. Activating the trigger a second time causes a partial loss of control of the new player unit (bob). I cannot aim or move, but can fire the gun (although it seems not to create any bullets) and use the map. Version 1.05.5143

player = group leader

bob = unit 2 of players group

trigger = on activation "setPlayable bob"

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  

×