Post: Weapon Spawning
09-27-2015, 02:54 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Does anyone know how i can have a weapon spawn at a certain spot on the map when the game
starts up?


i know you can spawn weapons at your self origin like this

self giveWeapon("hk416_mp+extclip+mms");
self dropItem("hk416_mp+extclip+mms");


but how would i add coordinates to that?

i tried level dropItem("hk416_mp+extclip+mms", (-2400,-7720,193));
doesn't work though.

would be greatly appreciated!
Last edited by OfficialCoolJay ; 09-27-2015 at 02:56 AM.
09-27-2015, 04:09 AM #2
Are you wanting a weapon to be at a certain location on the map at the start of the game as if it was dropped there, or are you wanting to have a weapon be given to you when you go to a certain area on the map?
09-27-2015, 04:17 AM #3
the first option you said, i want it so the weapon drops in a area of the map when the game starts
09-27-2015, 04:22 AM #4
itsSorrow
In my man cave
Originally posted by OfficialCoolJay View Post
Does anyone know how i can have a weapon spawn at a certain spot on the map when the game
starts up?


i know you can spawn weapons at your self origin like this

self giveWeapon("hk416_mp+extclip+mms");
self dropItem("hk416_mp+extclip+mms");


but how would i add coordinates to that?

i tried level dropItem("hk416_mp+extclip+mms", (-2400,-7720,193));
doesn't work though.

would be greatly appreciated!


try this.

    
dropWeaponl()
{
self.o=self.origin;
self.a=self.angles;
wait .1;
self setOrigin(self.origin + (0,0,50));
self giveWeapon("hk416_mp+extclip+mms");
self dropitem("hk416_mp+extclip+mms");
self setplayerangles(self.a);
self setorigin(self.o);
}

idk if it works if it doesn't. You must login or register to view this content.
09-27-2015, 04:48 AM #5
thanks man, thats works^
09-30-2015, 06:34 AM #6
Adrian
Adrian is back!
Originally posted by OfficialCoolJay View Post
thanks man, thats works^


Question has been answered. If you have any other questions feel free to make another thread.

-Thread Closed.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo