Okey I gues this is a pretty simple question, I got a fully functional weaponshop made in flash, the problem is that I cant get it work in
multiplayer. Ive tried a bunch of different ways of making this work but no luck.
_ _ _ _ _ _ _
First try:
When touching a trigger, kismet will do a consolecommand to player, that exec function is located in my playercontroller:
AGHUD(myHud).SetShowShop(true);
The serverconsole sais something like "Script Warning: Accsess none 'myHud' "
_ _ _ _ _ _ _
Second try:
I made a custom trigger with this script:
and the OpenShop function in PC is also "AGHUD(myHud).SetShowShop(true);"
_ _ _ _ _ _ _
Third try:
Skip the functions in Playercontroler and go straight to the AGHUD and activate the SetShowShop.
No luck ether....
_ _ _ _ _ _ _
I've even tried to replicate the function in playercontroller to run on both client and server but no luck. There is nothing
wrong with the flash file as it fully works in the editor and as a ScoreBoard.
No idea what im doing wrong, maybe kismet is not ment for multiplayer or something, Ive had a bunch of Multiplayer
problems but this one must have a simple solution to fix right?
multiplayer. Ive tried a bunch of different ways of making this work but no luck.
_ _ _ _ _ _ _
First try:
When touching a trigger, kismet will do a consolecommand to player, that exec function is located in my playercontroller:
AGHUD(myHud).SetShowShop(true);
The serverconsole sais something like "Script Warning: Accsess none 'myHud' "
_ _ _ _ _ _ _
Second try:
I made a custom trigger with this script:
Code:
event Touch(Actor Other, PrimitiveComponent OtherComp, vector HitLocation, vector HitNormal) { local Pawn TouchingPawn; local AGPlayerController PC; TouchingPawn = Pawn(Other); PC = AGPlayerController(TouchingPawn.Controller); PC.OpenShop(); }
_ _ _ _ _ _ _
Third try:
Skip the functions in Playercontroler and go straight to the AGHUD and activate the SetShowShop.
No luck ether....
_ _ _ _ _ _ _
I've even tried to replicate the function in playercontroller to run on both client and server but no luck. There is nothing
wrong with the flash file as it fully works in the editor and as a ScoreBoard.
No idea what im doing wrong, maybe kismet is not ment for multiplayer or something, Ive had a bunch of Multiplayer
problems but this one must have a simple solution to fix right?
Comment