Jump to content

Home

The final waypiont question.


Gideon

Recommended Posts

I must have mist these posts but I need the answers because I finished my map and I'm now scripting and stuff (I have the behaveED but not the other program that is inserted with the tools update) I don't know how to make scripts with behaveED but if you can make your explanation clear I won't have to spend months of studying.

 

1. Where do you need waypoints for?

2. Do you need to assign them to a NPC (I do know that this must be done when patrolling)

3. What's the diffrence between all those waypoints? (waypoint-navgoal, waypoint-navgoal-1, waypoint etc..)

4. Which scripts can you use.

5. What waypoints do you use for letting somebody follow you?

(not when assigned but for example, when somebody is chasing me like a regular stormtrooper)

 

If there's anything I missed I'll let you know.

 

One last question for now,

6. I want a couple of stormtroopers move to a certain destination and then dissapear to respawn in another place and then redo the cycle endlessly or for a certain amount of time.

 

I don't want them to respawn if they die with a certain weapon or trigger.

Link to comment
Share on other sites

1. For NPCs to navigate thru the map

2. Only waypoint_navgoals but not in Radiant, via scripts.

3.

 

waypoint_navgoal - an entity used for NPCs to go to. So, if you have this script:

affect ("NPC", flush)

{

task ("go1")

{

set ("NAVGOAL", "name_of_navgoal");

}

dowait ("go1");

}

 

the NPC will now try to reach this navgoal.

waypoint_navgoal_1,2,3 are the same, only smaller in size. Used for precise positioning of an NPC.

Just waypoints are used to mark possible routes in your map. An NPC cannot reach the navgoal unless it sees it. But what if you have a navgoal in the other end of your map and a complex corridor in between. In this case you place waypoints and connect them. (1st one target 2nd, 2nd targets 3rd and so on).

 

Picture illustrates

 

4. All scripts you can find+all you can make :D

 

5. You don't. It's done with script. You must set_chases_enemies (not sure if thats the correct name) property and set it to true.

 

6. IMO, this can be done in different ways.

 

a) you make trigger_teleport and target it target_position (which is in the area of respawn). You must make sure that the player can't get there or he will be teleported as well.

 

b) IMO, this also can be done by making a script and using copy_origin property. Unfortunately, I cannot give you more details now cuz I haven't done that in quite a while.

Link to comment
Share on other sites

Question:

 

For instance. I want a stormtrooper to stand still the whole time until of course he sees me. Than he is going to "chase" me like any normal person would do.

 

What must I do (exact information please)

 

"I'll be damn good if I know how to do this".

Link to comment
Share on other sites

Select NPC.

Open Entity WIndow (N key)

Enter:

 

key: angerscript

value: artus_detention/attack_kyle

 

Press Enter.

Close Entity Window.

 

I'll be damn good if I know how to do this.

 

Ya think? :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...