Frictional Games Forum (read-only)
Penumbra Worm... - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Penumbra Worm... (/thread-25951.html)

Pages: 1 2 3


RE: Penumbra Worm... - Amnesiaplayer - 08-25-2014

lol xd but i don't know...

this is my script

PHP Code:
void OnStart()
{
StopMusic(51);
PlayMusic("AsylumOutside"true0.7f10false);
AddEntityCollideCallback("Player""Start""EventCollide"true1);
SetMoveObjectState("Worm"1);
}

void EventCollide(string &in asParentstring &in asChildint alState)
{
SetEntityActive("Grunt"true);
AddEnemyPatrolNode("Grunt""1"1"");
AddEnemyPatrolNode("Grunt""2"1"");
AddEnemyPatrolNode("Grunt""3"1"");
AddEnemyPatrolNode("Grunt""4"1"");
AddEnemyPatrolNode("Grunt""5"1"");
AddEnemyPatrolNode("Grunt""6"1"");
AddEnemyPatrolNode("Grunt""7"0.001f"");
AddEnemyPatrolNode("Grunt""8"0.001f"");
AddEnemyPatrolNode("Grunt""9"5"");
}

void Worm(string &in asParentstring &in asChildint alState)
{
    
FadeOut(0.2f);
    
PlayGuiSound("worm_attack"1.0f);
    
    
GivePlayerDamage(100"bloodsplat"falsetrue);
    
CheckPoint("checkpoint""PlayerStartArea_1""ContinueAgain""Hints""DeathByWorm");




RE: Penumbra Worm... - Neelke - 08-25-2014

You don't have a collide function to the worm colliding with the player. No wonder it doesn't work Tongue

Code:
AddEntityCollideCallback("Player", "NAMEOFWORM", "WormCollide", false, 1);

This should fix it.


RE: Penumbra Worm... - Amnesiaplayer - 08-25-2014

it worked Big Grin thankss!!!
but can you please learn me how i do the animations ?!??! i really want that animations it looks unrealistic without animationns Tongue


RE: Penumbra Worm... - Neelke - 08-25-2014

Well, I've figured out one way of getting it's animations to work. There's an example in The Fugitive 3.

Basically what I did there was converting the actual animation, making it into a static object with the mass 5. Then I converted a block box to a move object which now works as an invisible move box that can be moved the direction you wish (and pushing the worm forward). This is more complex than the other one and it still needs to be linear, but it works.

It's slightly harder script here, but I'm assuming you want animations really bad.


RE: Penumbra Worm... - Amnesiaplayer - 08-25-2014

[yes i want it but this is... lol Too much xD
but how did the tenebris lake it ?!
can i copy them script ?! (of that map)
and let it work ??!? the animationsss


RE: Penumbra Worm... - Neelke - 08-25-2014

I can give you a download of my whole (current) rock worm folder and you can mess around with that. The animations are played inside the Level Editor so you can see which one is which.


RE: Penumbra Worm... - Amnesiaplayer - 08-25-2014

okey Big Grin Thanks!
i hope it will have the animations Tongue


RE: Penumbra Worm... - Radical Batz - 08-25-2014

I am going to send you a pm with the download link ok?

Neelke told me to format the zip file as a link and had to go eat so yeah.

And feel free to credit him Smile


RE: Penumbra Worm... - Amnesiaplayer - 08-25-2014

thanks!! Big Grin
and yes! i'm going to credit him...
now i'm going to do some "Experiments"Big Grin with that worm.. Big Grin


RE: Penumbra Worm... - Radical Batz - 08-25-2014

(08-25-2014, 04:18 PM)Amnesiaplayer Wrote: thanks!! Big Grin
and yes! i'm going to credit him...
now i'm going to do some "Experiments"Big Grin with that worm.. Big Grin

Feel free Smile As neelke said "you can mess around with that. The animations are played inside the Level Editor so you can see which one is which."