A few questions about scripting an attack/gesture
|
|
Kakashi Okamoto
Registered User
Join date: 12 Jul 2006
Posts: 32
|
07-16-2006 21:11
I have a few questions of the possiblities of a few certain actions before I attempt to create them.
1. Is it possible to designate a Target so that your avatar ends up directly behind the target avatar?
2. Can a gesture or animation (custom) be used to push (like up and far) or can push type attacks only be used with weapons and weapon scripts?
3. Can a push be delayed in an attack, like according to a timing, or trigger?
|
|
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
|
07-16-2006 21:13
From: Kakashi Okamoto I have a few questions of the possiblities of a few certain actions before I attempt to create them.
1. Is it possible to designate a Target so that your avatar ends up directly behind the target avatar?
2. Can a gesture or animation (custom) be used to push (like up and far) or can push type attacks only be used with weapons and weapon scripts?
3. Can a push be delayed in an attack, like according to a timing, or trigger? 1. No. 2. Only scripts. 3. Yes, but only with a script. When I saw this topic, it looked like "scripting an attack", as in crashing the grid.
|
|
Kakashi Okamoto
Registered User
Join date: 12 Jul 2006
Posts: 32
|
07-16-2006 21:19
From: Keknehv Psaltery 1. No.
2. Only scripts.
3. Yes, but only with a script.
When I saw this topic, it looked like "scripting an attack", as in crashing the grid. So for #1, I would have to manually line myself up, ok For #2, are you saying that I would have to add a script to an object on my body and in the script, when activated, perform the animation, sound and push attack?
|
|
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
|
07-16-2006 22:19
2. The push has to be external, but the animation and sound can be incorporated in the gesture.
|
|
Goapinoa Primeau
Addict
Join date: 29 Jun 2006
Posts: 58
|
Kick up the rear
07-16-2006 22:23
Sounds like you wanna give someone a kick up the rear, whilst i do think theres far more interesting things you can do in SL than war games I also would hate to discourage you because in learning this stuff youll figure out how to make a football or something else cool.
Anyways, you could read all these answers on the LSL Wiki, I'm not sure, im fairly new to this, but i dont see why you couldnt have a script move your avatar, certainly there ways you can push other avatars around that apply to your own, there are even some commands that teleport avatars i think, I might be wrong. You will have to use a script that is attached to an object that your either near or wearing in order to have it push or fart or kick someone away, whatever it is you want to do.
If it is a kick youre going for why not add a few particle sprinkles for effect thats fairly straightforward and theres loads of example around to get you going.
|
|
Rodrick Harrington
Registered User
Join date: 9 Jul 2005
Posts: 150
|
07-16-2006 22:48
you can move the AV but not rotate it.
|
|
Kakashi Okamoto
Registered User
Join date: 12 Jul 2006
Posts: 32
|
07-16-2006 22:50
Goapinoa, Thats basically what I want to do, but what Im gonna try to do is more of a joke. Its something that would be absolutely halarious to see ingame, which is why Im gonna try to pull it off. 
|
|
Jill Vinson
Not a zombie
Join date: 8 Jul 2006
Posts: 10
|
07-17-2006 06:48
I am new to scripting but if you look at the licker av i made that is a perfect example of what im capable of, If you need help with it just message me. I have not tried a push code yet but I have made game scripts and got em all working where I use a gesture and an attack at the same time. Ill try to make a push script and ill post it here how to make a push with sound and animation.
|
|
Goapinoa Primeau
Addict
Join date: 29 Jun 2006
Posts: 58
|
lol
07-17-2006 17:41
I look forward to seeing the results!
|
|
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
|
What about a pet bullet?
07-18-2006 20:30
1. Shoot the target. The bullet must be transparent and no effect. And it must be a pet script which keeps locating behind the target. Then get the positon of the pet bullet by sensor and you can sit-teleport there.
2 & 3. You can perform any gesure with shooting the bullet that is transparent and now give him damage. Shooting the bullet time can be delayed as much as you like.
It is better that the pet bullet is temp on rez or dies in severl seconds.
_____________________
 Seagel Neville 
|