[HELP] Spawn C4 on specific coordinates
I would like to know how to automatically spawn a ticking C4 bomb on round start.
It should be spawned at specific coordinates. The plan is to change the coordinates depending on what map it is using get_mapname. So I would also like to know how to get coordinates, I have used the map spawns editor plugin and tried taking coordinates from the .cfg generated by that plugin but it did not work. Thank you very much. |
Re: [HELP] Spawn C4 on specific coordinates
Go where you want the c4 to be and retrieve your origin.
|
Re: [HELP] Spawn C4 on specific coordinates
Quote:
edit: found this. Code:
#include <amxmodx> |
Re: [HELP] Spawn C4 on specific coordinates
Quote:
I used the function above to get my origin in T spawn on de_dust2. I then successfully spawned a c4 at this location. I then got my origin while standing in the middle of the bomb site B (on flat ground). And then tried to spawn a c4 the same way.. It spawned a bomb, somewhere.. But not at this location, what am I doing wrong? T spawn origin: (working) origin[0] = -648.065186 origin[1] = -808.345093 origin[2] = 164.031250 B site origin: (not working) origin[0] = 1360.031250 origin[1] = 2575.968750 origin[2] = 47.417095 |
Re: [HELP] Spawn C4 on specific coordinates
I think you need show some code.
|
All times are GMT -4. The time now is 19:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.