Mapping Newbie with simple script question.


(GunitMapper) #1

I am new at this mapping thing and I am already hooked! :smiley: I have spent weeks and weeks just reading everything online that I could find on how to do almost everything. I just have one question right now:

In my ai script, I want a weapon to spawn after the death of one of my ai’s. I know you put it in the ā€œdeath partā€ but I’m not sure exactly how to do it.

Also on a seperate note, I have given my ai the luger and set the ammo at 8, yet he is able to have virtually unlimited ammo! Is this something I am doing? :?

Thanks in advance!


(kamikazee) #2

I only editted W:ET, so can’t help you with the AI scripts.

The ammo you configured will probably only set the ammo count for the weapon he will drop.


(carnage) #3

AFAIK (and its been a while since iv done rtcw AI scripting) rtcw weapons cannot be spawned by targeting them. you can make them re spawn but they will always be there to begin with

a prettier solution might be trigger a wall to fall down or something in the death part of the AI’s script allowing the player to reach the weapon

alternatively there is script commands to give the player weapons and ammo directly without pickups