Yuri Olsen
Junior Member
Join date: 24 Apr 2004
Posts: 5
|
06-30-2004 05:16
Im trying to make a weapon that has 2 or more types of attack that has a way of the user saying a command that activates only one of the attacks. ive tries to do a listen script and that didnt work.
I saw something like ||Getsubstring (i think thats it) and wondered if it is possible to make this work for my needs. If it is then could someone plz tell me how to make it and if it isnt really suitable then could someone tell me a different method of doing it.
|
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
|
06-30-2004 06:02
I think you may need to be a little more specific. Why didnt your listener work? what happened? what did you actually try? Because its more than possible to have a listener recognise a command and toggle to a new bullet type or whatever. As for llGetSubstring, that's only half the story... what string are you going to get a substring of if you can't get the input in the first place? May I suggest you have a look through the rather excellent LSL Wiki which has some very good descriptions of all the functions and events, as well as some useful real world example code. And if you still don't have your answer following that, come back here and ask more specific questions! 
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
06-30-2004 06:23
LSL functions start with "ll", not "11" or "II" or "||". Those are lowercase 'L's. 
|