Home   Help Search Login Register  

Author Topic: getting a variable assigned to a player in a script  (Read 3242 times)

0 Members and 1 Guest are viewing this topic.

Mr.Pibb

  • Guest
Re:getting a variable assigned to a player in a script
« Reply #15 on: 12 Dec 2004, 17:51:11 »
I quickly unsolved, put this in, and re-solved this topic due to an error in the final script - CrashDome and Planck both corrected me on this, so here is the proper form, only the publicvariable "shooterplayer" has been moved



_shooter = _this select 1
_shot = _this select 0
shooterplayer = objNull

?(_shooter == player):shooterplayer = player
publicvariable "shooterplayer"

Exit