Raised This Month: $ Target: $400
 0% 

Bomb planting


Post New Thread Reply   
 
Thread Tools Display Modes
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-10-2007 , 21:57   Re: Bomb planting
Reply With Quote #11

what his does is different than what you are trying to do. His creates a zone but it is not a "spawned entity" it is infact just some coords stored in varriables, that he uses to check if you are in this "zone". For your buyzone thing, the best thing to do is what I said first. Create a func_bomb_target, or info_bomb_target entity, and spawn it...then the game engine will automatically deal with them touching it and being able to plant ect.

[EDIT] Example:
Code:
new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_bomb_target")); //or is it info_bomb_target? try both... if(ent) {     dllfunc(DLLFunc_Spawn, ent);     engfunc(EngFunc_SetOrigin, ent, Float:{1420.0, 705.0, 16.0});     engfunc(EngFunc_SetSize, ent, Float:{-128.0, -128.0, -64.0}, Float:{128.0, 128.0, 64.0}); } //change your coords to w/e
__________________
DO NOT PM me about avp mod.

Last edited by Rolnaaba; 07-10-2007 at 22:22.
Rolnaaba is offline
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 07-12-2007 , 00:41   Re: Bomb planting
Reply With Quote #12

im lost. lol how/where should i put this in to the code
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-12-2007 , 10:10   Re: Bomb planting
Reply With Quote #13

Where ever you want the entity to spawn in your code. If you want it to spawn when you say /span then register a cmd and spawn it there. Also change the coords to whatever you need, AND this may or may not work it is just an example...
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode