Gamestudio Links
Zorro Links
Newest Posts
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 1,338 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 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