Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-19-2001, 10:00 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Weapon Fired

What is the code so taht a weapon only works when fired on a certain area? Say for fishing u want only a part of a pond to have it work or mining only a part of the mine or somthing like that. How do you do taht? No one seems to know =\
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #2  
Old 07-19-2001, 10:48 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool do this...

something like this...

on the level make a npc and do this

level.<weaponsname>allowed = 1;

and in the weapons coding do something like

if(weaponfired&&level.<weaponsname>allowed==1){
//coding
}
__________________
Thanks,
-KJL
Reply With Quote
  #3  
Old 07-19-2001, 11:20 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
no thats not what i need. I need it so a weapon only fires when its touching a certain area in a level (not the level itself). Saiko was teaching me then he had to leave and now hes to busy with Xone to help. Like say there is a pond in the middle of the level. How would you do it so that it only fired on the coordinates for the pond?

Thanks anyways KJS

__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
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 +2. The time now is 07:35 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.