Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / zombi4 leavecorpse script

Author
Message
David Thomas
18
Years of Service
User Offline
Joined: 26th Mar 2006
Location: FRANCE
Posted: 23rd Jun 2008 21:53
Hello everybody

I bought bond zombi4
the script used when the character killed is zombi4destroy.script but the zombi body disapear. I would like to use leavecorpse but it doesn't work on this character. someone can help me? thanks

this the original script:

;Artificial Intelligence Script

;Header

desc = Fade Out Disappear

;Triggers

:state=0:setframe=97,state=11
:state=11:incframe=97
:state=11,frameatend=97:state=1
:state=1,alphafadeequal=100:decalphafade=0
:state=1,alphafadeequal=0:state=2,destroy

;End of Script

someone know how to transform this script to leave the corpse of zombi after killed?

thanks for help
Airslide
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 23rd Jun 2008 23:05
Here :



All you have to do is remove the last two states

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 24th Jun 2008 02:16
Might also want to put something into state 1 that tells the script to stop processing. That would save some CPU for other tasks in the game.

It's always good to optimise things ahead of time.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Airslide
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 24th Jun 2008 06:33
Right, silly me:



That should do it

David Thomas
18
Years of Service
User Offline
Joined: 26th Mar 2006
Location: FRANCE
Posted: 25th Jun 2008 20:49
Hello

thank you very much airslide for your help

Login to post a reply

Server time is: 2024-11-24 09:41:57
Your offset time is: 2024-11-24 09:41:57