Data Realms Fan Forums
http://45.55.195.193/

How to check which specific player is controlling actor
http://45.55.195.193/viewtopic.php?f=73&t=16708
Page 1 of 1

Author:  CaveCricket48 [ Wed Sep 30, 2009 2:36 am ]
Post subject:  How to check which specific player is controlling actor

How do you check which specific player is controlling the stated actor? Search and wiki didn't help.

Author:  TheLastBanana [ Wed Sep 30, 2009 4:16 am ]
Post subject:  Re: How to check which specific player is controlling actor

Use a for loop to cycle through ActivityMan:GetActivity().PlayerCount. With each loop, check if self.Controller.Player is equal to the player being checked.
Don't forget that the player number starts at 0. That means that if there are 2 players, the players are 1 and 0. In your for loop, make sure to only loop the player count minus one.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/