![]() |
|
|
|
#1
|
|||
|
|||
|
Your mistake:
Code:
GPUserLabel lbl = GamePlay.gpMakeUserLabel(p, BluePlayersArray, "RAF Dunkirk", t, GPUserIconType.Factory); to show the lable only to one side use you must use: Code:
GamePlay.gpDrawUserLabel(BluePlayersArray, lbl); |
|
#2
|
|||
|
|||
|
Thankyou again Kodiak, I'm using this in the dedi server context but MakeUserLabel fails with invalid arguement(s)
What's the purpose behind the method taking an arguement for the player who created the label? Surely there will be instances where the scripter wants to display a label at times when no actual player has 'created' the label?Code:
double t = GamePlay.gpTimeofDay(); GPUserLabel lbl = GamePlay.gpMakeUserLabel(p, GamePlay.gpPlayer(), "RAF Dunkirk", t, GPUserIconType.Factory); // compile error GamePlay.gpDrawUserLabel(BluePlayersArray, lbl);
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE Last edited by salmo; 11-03-2012 at 06:17 AM. |
|
#3
|
|||
|
|||
|
GPUserIconType is an enum type the argument type is int so you must cast (int)
Code:
GPUserLabel lbl = GamePlay.gpMakeUserLabel(p, GamePlay.gpPlayer(), "RAF Dunkirk", t, (int)GPUserIconType.Factory); Last edited by FG28_Kodiak; 11-03-2012 at 06:24 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|