nelo_riot 8 Posted July 12, 2017 Hi Guys, I am working on a huge Tanoan mission framework project, part of which there is a combat arena which I would like to be part of the 'story' as such. The overall concept is, a singular player walks up to Object, addactions 'Enter Arena', this creates a playable AI unit, the caller becomes the AI unit, once this unit is killed the player returns back to their previous unit. (The reason I am creating an AI unit: I cannot see a way to remove a players gear and then put it into a box or similar, so when they respawn the gear can be retrieved [This gear wouldn't necessarily be a normal load out]). I have been playing around and I think these commands are kind've what I am looking for, could anyone advice below? Quote _caller = _this select 1;_unit = "SoldierWB" createUnit [position AiArena, group player];addSwitchableUnit _Unit; selectPlayer _Unit; waitUntil {sleep 1; !alive _Unit}; // Unit dead checkselectPlayer _caller; Share this post Link to post Share on other sites
7erra 629 Posted July 14, 2017 The addSwitchableUnit command is SP only. Use this instead: _caller = _this select 1; _unit = "SoldierWB" createUnit [position AiArena, group player]; player remoteControl _unit; // will remoteControl it, you still will have full control of the player _unit switchCamera "internal"; // fix the camera to the "vehicle" waitUntil {sleep 1; !alive _Unit}; // Unit dead check objNull remoteControl _unit; // removes the remoteControlling player switchCamera "internal"; // returns to the player Also if you are using an addAction the waitUntil command won't work because the script doesn't support supsension. Share this post Link to post Share on other sites