Hello Lapperusers.
I present to you a new version of LFSLapper.
LFSLapper version : 7.0.4.5
This version contains new Lapperfunctions and 1 new event that need to be tested.
Feedback whould be nice
NOTE: Since Version 7.0.4.4 contains changes for the RegisterNodeAction() & RegisterNodeAction() Sub Callbacks
==========================================================
==========================================================
Have fun.
                
                
                    
            I present to you a new version of LFSLapper.
LFSLapper version : 7.0.4.5
This version contains new Lapperfunctions and 1 new event that need to be tested.
+-------------------------------+
|Changes from 7.0.4.4 to 7.0.4.5|
+-------------------------------+
=================================================
New:
=================================================
    
01 - New Function: Add/Remove Objects
     It is possible to add/remove objects up to 30 objects at once
        
        Check the Objectslist.txt in the attachments for the objectslist
       Type = Type of object
        $Object_One = "19:-654:3:208:175:64"; #X:Y:Z:Flag:Type:Heading
        $Object_Two = "20:-654:3:208:175:64"; #X:Y:Z:Flag:Type:Heading
        
        addobject($Object_One,$Object_Two);
        removeobject($Object_One,$Object_Two);
        
        If one of the parameters of the object is incorrect,  function will abort its action.
        In the errorfiles you can see which object is incorrect.
                
    
02 - New Function: Distance Measurement between Player <> Player  / Player <> Object / Object <> Object
           trackuserdistance();
        
        With this function you can display the distance between 2 players or between a other location and a player.
        See some examples below.
            $TheLocation = "-150:26";  #Var must be a string > "", and X and Y axis must be seperated by a ':'      
            trackuserdistance($userName,$userName);
            trackuserdistance($TheLocation,$userName);
            trackuserdistance($userName,$TheLocation);
            trackuserdistance($TheLocation,$TheLocation);
            trackuserdistance("-150:26","-150:26"); #(X:Y,x:y)
03 - New Event : Get info about the objects you add/removed by autocross editor
    
            $DisplayObjectInfo = -1; #Set -1 to disable this event
            Event OnObjectInfo($userName,$NumO,$Action,$X,$Y,$Z,$Flags,$Type,$InDex,$Heading) # Player event
                privmsg("^7LayoutAction: ^8".$Action);
                privmsg("^7Number of Objects: ^8".$NumO);
                privmsg("^7X/Y/Z: ^8".$X."/".$Y."/".$Z);
                privmsg("^7Index & Type of Object ^8".$InDex."/".$Type);
                privmsg("^7ObjectFlag ^8".$Flags);
                privmsg("^7Heading of Object ^8".$Heading);
            EndEventFeedback whould be nice
NOTE: Since Version 7.0.4.4 contains changes for the RegisterNodeAction() & RegisterNodeAction() Sub Callbacks
==========================================================
<?php 
RegisterNodeAction( TESTID, getLapperVar( "ShortTrackName" ) , getCurrentPlayerVar("CurrNode") , test,"" );
Sub test($UserName,$ZoneID)
    privmsg("ID=".$ZoneID); #output is TESTID
EndSub 
?>
Have fun.
