The online racing simulator
INSIM 2 Second Penalty
(2 posts, started , go to first unread)
INSIM 2 Second Penalty
Hi can anyone help me with this on how to use it please...

// If an autocross object is hit (2 second time penalty) this packet is sent :

struct IS_AXO // AutoX Object
{
byte Size; // 4
byte Type; // ISP_AXO
byte ReqI; // 0
byte PLID; // player's unique id
};

Thanks

Andy
There is an event already to detected hit objects.
Those 2 seconds will be added by LFS automatically



<?php 
#############################
#Actions to do on Hit Object#
#############################

#Player Vars
#GetCurrentPlayerVar("ObjectContactSpeed")     //Speed of player when hitting a object
#GetCurrentPlayerVar("ObjectContactHead")      //Heading of player when hitting a object
#GetCurrentPlayerVar("ObjectContactDir")       //Direction of player when hitting a object

# When $ObjectFlag returns a value.
#OBH_LAYOUT,         //1  an added AutoX object 
#OBH_CAN_MOVE,         //2  a movable object
#OBH_WAS_MOVING,     //4  was moving before this hit
#OBH_ON_SPOT         //8  object in original position

$DetectHitObject "";  #To get objectstrings for detection look at docs/ObjectHit.txt

Event OnObjectHit($userName,$ObjectFlag,$ObjectHitTime,$Object_X,$Object_Y,$Object_Z,$ObjectType,$ObjectInDex)  # Player event
    #Globalmsg("".getplayervar($userName,"NickName")."^8 hit a ^3".$ObjectType." ^8Height: ".$Object_Z);
EndEvent
?>



INSIM 2 Second Penalty
(2 posts, started )
FGED GREDG RDFGDR GSFDG