Artensa 23 Sep, 2012 @ 9:12am
Making antlions jump (need help)
Hey guys, iv looked for tutorials, and the ones that arent way outdated dont tell me what i need to know. Can someone show me how to get an antlion to jump into the air and attack, once the player has hit a triggerbrick?
I reaaaally would appreciate any help you can give.

THANKS!
< >
Showing 1-6 of 6 comments
Demented 24 Sep, 2012 @ 1:53pm 
So long as the shortest path (or only path) to an info_node requires jumping, an antlion will fly and jump to it. You don't need air nodes or jump hints.

To ensure that an antlion actually tries to get from point A to point B, when you spawn an antlion with npc_antlion_template_maker you can set a 'fight target' (which can be any entity, usually an info_target). You can also send a 'FightToPosition' input directly to an antlion.
Artensa 8 Oct, 2012 @ 3:53pm 
Thanks, much appreciated! Working on it now.
Artensa 11 Oct, 2012 @ 4:59pm 
Hey, so i hope im not being a pain, but i am a bit of a noob :P but i cant seem to get it to work. I have an info_target named target1, an npc_antlion_template_maker named maker1 set to 1 npc max and such, and its set to fight target: target1 and start disabled = yes. last i have a trigger brick whos only output is name: OnTrigger entities named: maker1 via this input: Enable im not sure whats wrong, but nothing spawns or anything.

plz keep in mind im newish to source, and completely new to this area of it. any help greatly appreciated!

THANKZ!
Demented 14 Oct, 2012 @ 5:54pm 
start_disabled should be set to 'no'. A disabled entity won't do anything until you 'enable' it.
You may also need to put a grass or sand surface near it, and an info_node over that.
Artensa 15 Oct, 2012 @ 1:27pm 
Hey thanks, im SO CLOSE and i much appreciate your help, but how do i use the node?
What nodes ? the info_node ? you only need them in your level for the npc to build a route.

Also you can you use the "JumpAtTarget, so when the jump is finished the npc return on the main Ai , and gather for new condition.
If the Antlion get the Cond_SEE_Player so the antlion in NPC_State_Combat.
and just after, if he get the COND_CAN_MELEE_ATTACK1 will perfom the meleeattack 1
or if the antlions gets the Cond_CAN_MELEE_ATTACK2 ( pounce)
the condition depend on the distance of the Player/enemy.
it's helpful to know how is build the npc AI in the source code.

Well i hope it was helpfull for you too.
< >
Showing 1-6 of 6 comments
Per page: 1530 50