Kubix 83 Posted February 21, 2016 (edited) - script OnPCDieViewMap -1,{ OnPCDieEvent: if( getcharid(1) ) { getmapxy( .map$, .x, .y, UNITTYPE_PC ); getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; copyarray .@paid[0], $@partymemberaid[0], $@partymembercount; copyarray .@caid[0], $@partymembercid[0], $@partymembercount; for( .@i = 0; .@i < getarraysize(.@paid); .@i ++ ) { if( isloggedin( .@paid[.@i], .@caid[.@i] ) ) { attachrid( .@paid[.@i] ); .@id = rand(500); if( strcharinfo(3) == .map$ ) viewpoint 0, .x, .y, .@id, 0xFF0000; detachrid; } } } end; } Preview: https://gyazo.com/1e8aaaa304e13d9f9745264c9a0def08 https://gyazo.com/77928f04c9f80b8313200452bcfff33d Edited February 21, 2016 by Kubix 2 Lamex and evilpuncker reacted to this Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted February 21, 2016 that is really neat thanks Quote Share this post Link to post Share on other sites
REKT 10 Posted February 22, 2016 LOL, this is a cool idea thank you for this! Quote Share this post Link to post Share on other sites
REKT 10 Posted March 20, 2016 - script OnPCDieViewMap -1,{ OnPCDieEvent: if( getcharid(1) ) { getmapxy( .map$, .x, .y, UNITTYPE_PC ); getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; copyarray .@paid[0], $@partymemberaid[0], $@partymembercount; copyarray .@caid[0], $@partymembercid[0], $@partymembercount; for( .@i = 0; .@i < getarraysize(.@paid); .@i ++ ) { if( isloggedin( .@paid[.@i], .@caid[.@i] ) ) { attachrid( .@paid[.@i] ); .@id = rand(500); if( strcharinfo(3) == .map$ ) viewpoint 0, .x, .y, .@id, 0xFF0000; detachrid; } } } end; } Preview: https://gyazo.com/1e8aaaa304e13d9f9745264c9a0def08 https://gyazo.com/77928f04c9f80b8313200452bcfff33d How to make the View Point permanent pinging? it will be removed if the player is ALIVE, and i notice that a couple of seconds the viewpoint went gone? Quote Share this post Link to post Share on other sites
Kubix 83 Posted March 21, 2016 - script OnPCDieViewMap -1,{ OnPCDieEvent: if( getcharid(1) ) { getmapxy( .map$, .x, .y, UNITTYPE_PC ); getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; copyarray .@paid[0], $@partymemberaid[0], $@partymembercount; copyarray .@caid[0], $@partymembercid[0], $@partymembercount; for( .@i = 0; .@i < getarraysize(.@paid); .@i ++ ) { if( isloggedin( .@paid[.@i], .@caid[.@i] ) ) { attachrid( .@paid[.@i] ); .@id = rand(500); if( strcharinfo(3) == .map$ ) viewpoint 0, .x, .y, .@id, 0xFF0000; detachrid; } } } end; } Preview: https://gyazo.com/1e8aaaa304e13d9f9745264c9a0def08 https://gyazo.com/77928f04c9f80b8313200452bcfff33d How to make the View Point permanent pinging? it will be removed if the player is ALIVE, and i notice that a couple of seconds the viewpoint went gone? viewpoint 0, .x, .y, .@id, 0xFF0000; -> viewpoint 1, .x, .y, .@id, 0xFF0000; There is no label that triggers when player is resurrected, so i can't help with "it will be removed if the player is ALIVE" Quote Share this post Link to post Share on other sites