single player

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

single player

Post by Hashmark13 »

i need to learn to make a basic script to activiate ai in sp... help would be nice
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Just place ai in a map, and name is test_xxx for simple reasons.

SP has objectives that are added, and you need to complete the objectives (that's pretty obvious lol :lol:).

Need help with your SP map contact me via msn simon_tan_ys@hotmail.com
Live to map, not map to live.
-mohaa_rox, .map
moderator
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

i dont think you understand.. i know to make it test_blank and place AI in it...


what i am asking is i need the full script (with no objectives added yet plz) that makes the map load ect and have working AI that actualy use player path nodes... and stuff... just the basic beginner sp mapper that wants the germans to actualy shoot back at you when you and have weapons and so on...
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

easiest way... is not in scripting

with a german selected press "i"
give it a target: "player"
give it a targetname: "german"
then select APPLY

with the player_start selected press "i"
give it targetname: "player"
then select APPLY

do this for all ur Germans :D
hope this helps, prob not cos it's all foreign 2 me :-/
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

nuggets wrote:easiest way... is not in scripting

with a german selected press "i"
give it a target: "player"
give it a targetname: "german"
then select APPLY

with the player_start selected press "i"
give it targetname: "player"
then select APPLY

do this for all ur Germans :D
This is really not necessary! The player will have targetname 'player' by default, it's a very bad idea to targetname your start postion player also. If you do this, you've just turned $player into an array.

Germans don't need a target to attack someone. Actually it doesn't have any use.

To force Germans to attack the player, type key 'attackplayer' without a value. Otherwise they should still attack you if they see or hear you.
Image
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

nevermind... but thanks for trying to help. i will just use a script from one of the pk3 files...
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

ok one last time...

there is something that you enter into the script for your single player map.. and makes it so you dont have to type no friggin keys or values or any shiz like that... its just a simple line that you enter into your script and walla you have AI that actualy attack you rather than stand there and make wierd faces at you.
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

They don't stand there making faces. They rather attack you from afar. If you have set up pathnodes, they will come running and charging at you.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

i sat there and watched them... how would you know if they didnt make faces??? well anyways i figured out the scripting sheesh... the line of script that i was looking for was

Code: Select all

exec global/ai.scr
but thanks for trying to help
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

exec global/ai.scr does NOT 'activate' AI.

I've seen this so often and always I just have to deny it ;). Even the original developers used in wrongly :?.

This script is used (can be used) for enemy respawning with $enemyspawner entities.
Image
Hashmark13
Major
Posts: 299
Joined: Mon Nov 25, 2002 12:20 am
Location: USA

Post by Hashmark13 »

:evil: damn i just tried the ai without a map script and i used the thingy where you hit I but i didnt follow his way... i just gave em a weapon and that was about it... it worked fine... oh well
" If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside."
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

That's what we were trying to say also :wink:
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

well if you'd of tried HIS way earlier then you'd of solved your problem, serves urself right!!! :P
hope this helps, prob not cos it's all foreign 2 me :-/
Post Reply