![]() |
"shoot" questions
What flags would I use to hurt the player? How do I track the x and y position of the bullet?
|
When a projectile hits, it calls actionprojectile on the player/NPC.
You can set it's parameters with 'setshootparams' before the projectile is shot. |
How do I use setshootparams?
and do I use actionprojectile only on serverside? EDIT: ok, I can get actionprojectile to work with ncs but how do I use it for players? |
Simple.
Make a -System npc and have actionprojectile trigger an event in -System (e.g serverside) and have that do the rest. E.G - //System NPC if (actionprojectile) { // use your params here, so: //I dont know the syntax for hurt :O hurt playerx,playery,#p(0)*2; } |
I seem to have small problems with shoot, it fires alright but the bullets/projectiles dont hurt the player.
Quote:
Quote:
|
playerhearts can only be modified serverside, I believe.
|
| All times are GMT +2. The time now is 05:01 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.