Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: rulk on Oct 01, 2015, 06:51 PM

Title: CreateMarker ??
Post by: rulk on Oct 01, 2015, 06:51 PM
Hya chaps,

Is there a way to create a 'per player' marker on the radar. eg, only visible to that player.

CreateMarker, creates a marker, but its visible to  every player, and all the other marker functions in the wiki are the actual 'player blip markers' if I'm not correct ???

does anyone have any suggestions ?

thanks chaps.
Title: Re: CreateMarker ??
Post by: Stormeus on Oct 02, 2015, 12:39 AM
You can create a marker in the player's unique world (player.UniqueWorld). Any world-specific object made in this world will only be visible to that player.

Scripters are still responsible for cleaning these up when that player leaves, or else it'll just show up for the next player with the same ID.
Title: Re: CreateMarker ??
Post by: KAKAN on Oct 02, 2015, 06:05 AM
Put this on onplayerjoin and try:-
CreateMarker( player.UnqiueWorld, player.Pos, 1, RGB(255,0,0), 0 )
Title: Re: CreateMarker ??
Post by: rulk on Oct 02, 2015, 08:13 AM
player.UniqueWorld doh, of course.

Thanks chaps :-)