The online racing simulator
#1 - SEV7N
$text $username for MSO ...BUT
I am trying to learn lapper a bit more so I can use it's full potential. I found a program called "InsimSniffer" which told me what ISI packet meant what.

It told me
MSO is someones chat input.
OBH is when a user hit an object -In Insim.txt (LFS Doc Folder) it mentions more OBH, like these.

OBH_LAYOUT an added object
OBH_CAN_MOVE a movable object
OBH_WAS_MOVING was moving before this hit
OBH_ON_SPOT object in original position



Figuring this out i tried this.


<?php 
Event OnMSO
$userName$text )  # Player event
  
openPrivButton"Test_1",10,118,20,7,6,-1,32,"^3TEST 1234");
EndEvent
?>



It worked fine, I typed a msg into LFS chat and the button pops up.

I try this.


<?php 
Event OnOBH
$userName$text )  # Player event
  
openPrivButton"Test_1",10,118,20,7,6,-1,32,"^3TEST 1234");
EndEvent
?>


No Worky.

I think the "$username $text" has something to do with it?
If so is there a list of the $ that lapper uses?

Cheers.
Don't confuse LFS InSim commands and flags with LFSLapper events.

LFSLapper converts InSim commands into much simplified coding.

If you have the latest versions of lapper, look in the /doc directory for a file Lapper Events.txt, to see a list of events that are triggered from within lapper.

Krayy, who's now developing lapper, has posted about collision detection - see HERE.

However.

In lapper V6.013 there was a OnContact event (was hashed out so lapper ignored it), but it disappeared in V6.014 and I haven't seen any mention of it in the lapper changes file (/doc changes.txt).

The code went;


<?php 
Event OnContact 
$PlayerA$PlayerB$tagged # Lapper event
     
PlayerAPLID of first participant in the contact
     PlayerB
PLID of second participant\
     
taggedwas this contact a succesful tag?
    
globalMsg "Contact between " $PlayerA " and " $PlayerB);
EndEvent
?>


You might be able to use this event - with necessary proper coding in middle. Try it with simple button appearing on contact to see if the event is properly hard coded into lapper.

If using in a separate .lpr file, remember to Catch the event.
This thread is closed

FGED GREDG RDFGDR GSFDG