Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Dico), 16,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Guard Animation Script #143065
07/24/07 02:28
07/24/07 02:28
Joined: Nov 2005
Posts: 68
S
scurvy Offline OP
Junior Member
scurvy  Offline OP
Junior Member
S

Joined: Nov 2005
Posts: 68
Hello,
I'm not very good at scripting but know what I am looking for. Is there
anyone out there with a modifed version of the guard "biped" script that
makes the guard walk then attack then walk a little more then attack. The
script that came with 6.6 just attacks and slides to the player while it
continues to attack. If there is a free version with this a love to get
the link. Or if someone has worked out the bugs and is saleing the script
am willing to pay if not real expensive. Thank you for your help!

Re: Guard Animation Script [Re: scurvy] #143066
07/24/07 04:23
07/24/07 04:23
Joined: Sep 2005
Posts: 508
Texas
not_me Offline
User
not_me  Offline
User

Joined: Sep 2005
Posts: 508
Texas
it is scriptable..lol but i cant do it... thats mostly an animation thing. you can have the enemy guard check the players range and when hes out of range walk then attack... i think(im not sure) but i think it would look like
code
-----------------------------------------------
string walk;
string attack;
var player_dist = 'a number'//player distance ;
function your_function
{
my.anim_stance = "attack";
if (player_dist = 'a number')
{
my.anim_state = "walk";
wait(1); need this or it will mess up
}
if (player_dist = 'a number'//player is back within range to attack)
{
break;// you have to break the enemies walking.
my.anim_stance = "attack";
}
}

but dont take my word for it...wait for some one else to post and correct me. im pretty sure ive messed up in a few places in that.
*EDIT-
plus i still use 6.40.5 because i trust it more... 6.6 doesnt quite work with sphere2...so....

Last edited by not_me; 07/24/07 04:25.

-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: Guard Animation Script [Re: not_me] #143067
07/25/07 04:02
07/25/07 04:02
Joined: Nov 2005
Posts: 68
S
scurvy Offline OP
Junior Member
scurvy  Offline OP
Junior Member
S

Joined: Nov 2005
Posts: 68
Always thankful for any and all help. I will try to get the code to work
and if successful will post it for are other forum users as to I have talked
to few others with my problem. If any one else is working on making this work
or have any other ideas on making an improvement to the guard templetes I
and others would love to here from you, thanks all!


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1