Newbie Question....Item Pickup

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
dooguesgoober4
Captain
Posts: 246
Joined: Fri Oct 17, 2003 1:00 am
Location: Akron, OH
Contact:

Newbie Question....Item Pickup

Post by dooguesgoober4 »

Can anyone tell me how to make the character pick up a small item like a gun or ammo.......I can't seem to figure it out.....thanks!!! :D
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Post by smartaiguy »

do you mean you automatically do it or is it an option? You can place items by right clicking in the 2D view and go to item and then your item, or addon>playerweapon but if you mean force the player to pick it up, I don't know. You can also script the player to have a gun or item when he starts by

Code: Select all

main:
level waittill prespawn //only need this once
level waittill spawn //only need this once
$player item weapons/colt45.tik //gives you the colt 45
$player item weapons/bar.tik //gives you the bar

This gets you the bar and the colt 45, you can edit them and add more if you wish. To add an item add this line:

Code: Select all

$player item items/binoculars.tik //gives you the binoculars
dooguesgoober4
Captain
Posts: 246
Joined: Fri Oct 17, 2003 1:00 am
Location: Akron, OH
Contact:

Post by dooguesgoober4 »

How exactly do I put this code in??? Where do I go???
dooguesgoober4
Captain
Posts: 246
Joined: Fri Oct 17, 2003 1:00 am
Location: Akron, OH
Contact:

Post by dooguesgoober4 »

Oh....and for some reason, when I start Radiant, i always get the set basepath/mapspath/autosave dialogue box and I know for sure that everything is right...
Basepath...c:\program files\ea games\mohaa\
Mapspath...c:\program files\ea games\mohaa\main\maps
Autosave...c:\program files\ea games\mohaa\main\maps

and the moddir is

moddir...main

Any idea what I might be doing wrong???
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

playerweapons

Post by tltrude »

A player can pick up a weapon if he drops his current primary weapon (key H). Don't use the static weapons, use "playerweapons". You'll see that when you right click on the 2d window of the editor. Ammo is under items/ammo.

For the autosave problem, you can turn off autosave in edit/preferences. But, mine is set in project settings like this:

C:\Program Files\EA GAMES\MOHAA\maps\tltrude\

If I had it turned on, it would autosave in the "tltrude" folder I put in maps. But, i just save manually to that location.
Tom Trude,

Image
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Post by smartaiguy »

open up Notepad and put the script in, save it as mymapname.scr with your .bsp where you have mymapname.bsp , makesure its the same as your map.

Note: the .scr may show up as a screensaver, thats ok
dooguesgoober4
Captain
Posts: 246
Joined: Fri Oct 17, 2003 1:00 am
Location: Akron, OH
Contact:

Post by dooguesgoober4 »

Thank you guys very much...I'll letcha know if I run into any more problems... :D

One quick question....does anyone know where i could find a file or site that lists all the script commands and/or .tik names???? It would be greatly appreciated!!
dooguesgoober4
Captain
Posts: 246
Joined: Fri Oct 17, 2003 1:00 am
Location: Akron, OH
Contact:

Post by dooguesgoober4 »

Nevermind guys....I found a list....thanks for your help again!!
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Post by smartaiguy »

Glad to help out
Post Reply