View Full Version : Generating Weapons
Grayswandir
02-11-2007, 10:36 PM
How exactly do you place a weapon on the screen, for use in custom items and enemys and such. I can't find the command, but I seem to remember hearing that you could do it (and was the only way to easily damage enemies)
It's kind of a stupid question, but I really can't figure out how to do it. Thanks.
Currently, the commands CREATELWEAPONR, CREATELWEAPONV, CREATEEWEAPONV and CREATEEWEAPONR only available in ZASM.
Also, DarkDragon feels that these four commands ought to be united into two commands, so it's likely that these will become deprecated at some point.
Grayswandir
02-12-2007, 01:05 PM
Thanks. Also, none of the weapon variables seem to compile, such as WPNCOUNT or WPNX. Were they changed, or merely disabled? (using b219)
Here's what I had:
START WAITFRAME
COMPAREV INPUTR,1
GOTOFALSE START
SETR D0,WPNCOUNT
ADDV D0,1
CREATELWEAPONV 8
LOADWEAPONR D0
SETR WPNX,LINKX
SETR WPNY,LINKY
GOTO START
If I change WPNCOUNT to NPCCOUNT, it works fine until it hits WPNX.
DarkDragon
02-12-2007, 01:46 PM
There is some housecleaning that needs to be done before weapons scripting can work right. I'll try to get it done for 2.5, though at the moment I want to concentrate on killing outstanding critical bugs.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.