HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

GetLocalPlayer

04-01-2003, 12:42 AM#1
MarSara
If I use GetLocalPlayer(...) when creating quests, (so only 1 player see the quest) do I have to test for the LocalPlayer again when I want to complete/add/remove a quest requirment?
04-01-2003, 07:06 AM#2
AIAndy
For changing the mentioned things you will probably need GetLocalPlayer again. But you have to be sure that you do not put the things you get for the quest or anything that affects other players within that.
04-01-2003, 11:36 AM#3
FyreDaug
Or store the local player into a variable if it is an external trigger.
04-01-2003, 11:39 AM#4
skeletor
ya.....
04-01-2003, 09:07 PM#5
dataangel
Quote:
Originally posted by FyreDaug
Or store the local player into a variable if it is an external trigger.


Don't change globals period in any GetLocalPlayer() code, it'll desync. (inside of if(GetEnumPlayer() == GetLocalPlayer()) blocks I mean)
04-01-2003, 11:50 PM#6
MarSara
So, whenever I want to make a quest requirment complete, I need to test for the LocalPlayer again. Because what I am tring to do is, depending on the "class" that they pick in the begining of the game, will depend on the quest that they will recieve. And depending on how good a player is, two players that selected the same class, one could be closer to completing the quest before the other.