Page MenuHomeFeedback Tracker

setFace and Face commands malfunctioning
Assigned, WishlistPublic

Description

These commands are not working as expected when applied to AI units. Namely, "unitA setFace (face unitB)" should result in unitB acquiring unitA's face, but in practice the outcomes are inconsistently wild and nothing of the sort. {F22665}

Details

Legacy ID
2432085758
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Please see the repro mission. Further instuctions and notes can be found within the comments of the "init.sqf" file.

Event Timeline

MakeLoveNotWar edited Additional Information. (Show Details)
MakeLoveNotWar set Category to Scripting.
MakeLoveNotWar set Reproducibility to Always.
MakeLoveNotWar set Severity to None.
MakeLoveNotWar set Resolution to Open.
MakeLoveNotWar set Legacy ID to 2432085758.May 7 2016, 5:18 PM

The command 'Face' also doesn't return the new face if used 'SetFace' on a unit.

'Face' appears to only return the face the unit was spawned with even after changing the face with 'SetFace'.

'SetFace' properly changes the face, just 'Face' doesn't return the changed face.

version: 1.18.124097

Lecks added a comment.Jun 5 2014, 8:20 AM

The 'face' command also doesn't return the correct face in Multiplayer. It appears to return a random face (perhaps one that was randomly assigned to the unit before the player joined and their identity was applied to it).

To reproduce just put 'face player' in one of the Watch boxes in the debug console. It seems to work fine in the editor, just not multiplayer maps.

This makes it impossible to clone a player properly. If anyone has any workarounds, I'd be happy to hear them.

version: 1.20.124746

While at it maybe devs could add setCustomFace command and profileParams that contains player identity from game profile?

kk4pi added a subscriber: kk4pi.May 7 2016, 5:18 PM
kk4pi added a comment.Jul 20 2015, 9:10 PM

can't setface (*.paa) in multiplayer just only in local

PiepMGI added a subscriber: PiepMGI.May 7 2016, 5:18 PM

setFace is a "argument global" "effect local" function. Perhaps, it should be the contrary AL EG .