Jump to content

Recommended Posts

Posted (edited)

Hello guys,

 

On the open beta, I've done a script that outputs text to players in certains conditions and everything is working fine in single player.

 

However, in multiplayer, it fails because my players are units without associated groups.

No associated group means no groupID and thus I can't use 'outTextForGroup'

function trigger.action.outTextForGroup(GroupId groupId, string text, Time delay)

 

outTextForUnit doesn't exist so I am wondering if I should use a completely different way to send text popup to players in MP.

 

Anybody had the same problem?

Is it a problem of the 1.5?

 

-- More Information --

 

To be more precise, the unit is given to me by the world event world.event.S_EVENT_HIT and the unit is the target.

 

Another feature of my script is actually parsing all the the groups of a coalition to find the players and at some point also outputs a message and a sound.

This feature is working cause I have a proper group and thus a proper groupID.

 

However, when the unit is given to me by the event, it has no group. Maybe it's a bug.

 

I have a work-around as I can search all the groups to find the one with this unit ID or name but it seems pretty un-optimize;)

 

-------------------------

 

Thanks

Edited by Mirknir
More information

Mirknir

My old server:

The Thread

Posted

http://forums.eagle.ru/showthread.php?t=147792

 

That falls under the "Client groups not accessible in multiplayer" bug. The mist DBs would be one way around it as it saves all data from the mission editor about the group, like groupId.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted
http://forums.eagle.ru/showthread.php?t=147792

 

That falls under the "Client groups not accessible in multiplayer" bug. The mist DBs would be one way around it as it saves all data from the mission editor about the group, like groupId.

 

Ok ty for the quick answer.

Since it's a bug, I will implement my workaround as a backup when I want to display something and I dont have group.

When the version with the fix will be released, my workaround will be skipped.

 

:thumbup:

Mirknir

My old server:

The Thread

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...