- Joined
- Jul 27, 2012
- Messages
- 33
how to show letterbox only for one player with getlocalplayer()?
No he means letterbox cinematic mode. I do agree that it is kind of a weird term in this day and age however it is still used (even commercially) so is something worth remembering.by letterbox you mean dialog with buttons?
Use GetLocalPlayer to run the actions to enter and exit letterbox cinematic mode only for certain players. Do not run any other actions.how to show letterbox only for one player with getlocalplayer()?
For logical reasons computer players, empty slots or neutral players will never be returned by GetLocalPlayer. This is because they have no client for them. It is also pointless to run script locally for them as they have no "local" state as they have no client.
if GetPlayerSlotState(p) == PLAYER_SLOT_STATE_PLAYING and GetPlayerController(p) == MAP_CONTROL_USER then
if GetLocalPlayer() == p then
Would be a syntax error I guess.i place it outside the local player bcause when inside it will be error