![]() |
New Scripting Possibilities in Release candidate patch.
With the new patch its possible to get the Mission time.
Code:
double t = GamePlay.gpTimeofDay(); Code:
static string CreateTimeString(double num) Also we get the possibility to set lables, but i had no luck to get it to work. So maybe others can give me a hint how to use it. :rolleyes: |
Regarding labels I've tried:
Code:
public override void OnUserCreateUserLabel(GPUserLabel ul) (Also, pressing enter creating a new label in map window fires my guns :-| ) Hopefully someone nails the usage of the new label features. |
Didn't have luck with user labels too:(
|
I tried scripting labels as well. No compiler errors, but no labels for ground object displayed in online mission. I wonder whether labels are only displayed with icons-on server settings?
|
Quote:
|
Me too,
i got the OnUserCreateUserLabel Event in single player but not in Multiplayer and Dedi. In all cases no Icon was shown. So it seems to be a Bug. :rolleyes: |
You may try test.zip sample from this post http://www.sukhoi.ru/forum/showthrea...=1#post1902755
or ask Naryv for details if it does not help. |
Response from naryv about user label: http://www.sukhoi.ru/forum/showthrea...=1#post1906802
|
Ive tried it on a Dedi-Server without result, so ...
|
Quote:
The example code of naryv doesn't use the gpMakeUserLabel method, it only shows a label created from a player to other players. I will try out naryv's example code, to see if the labels are displayed there. I only need a second player to test it ... |
All times are GMT. The time now is 01:17 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.