[HOWTO] Spawn Sprites
3 Attachment(s)
You Can Use this Script To Display Sprites
Get Player Origin: PHP Code:
PHP Code:
Example:
Spoiler
Screenshot:
Spoiler
|
Re: [HOWTO] Display Sprites
Player will spawn fire at the place where they step?
Anyway, nice work. |
Re: [HOWTO] Display Sprites
Yes.
|
Re: [HOWTO] Display Sprites
Quote:
and Thanks. |
Re: [HOWTO] Spawn Sprites
how can i do it for when a player dies(origin never changes)
I want to do a lightning sprite and a exploding sprite to show up when a player dies, wil it be effective if i do it like this: PHP Code:
|
Re: [HOWTO] Spawn Sprites
Quote:
PHP Code:
|
Re: [HOWTO] Spawn Sprites
Nice, thank you, this will defenitly make it easyer for me thx:)
but i do have a few questions: the set_task 3.0 secs, does this mean that the showsprite will become 1, 3sec's after the victim has died? coordinate z is the hight right? when you add +30 there does this mean that the sprite will start showing from z coordinate +=30 units? or that the sprite will be higher with 30 units? for the scale, is that to extend the width of the sprite? If I enter a value lets say 3, will the sprite be 3 units wider? (sprite width +3 units?) I saw in your contributed notes that it is only for explosions so should i use that too for if i want to add a lightning effect? |
Re: [HOWTO] Spawn Sprites
Ah nice it certainly works :) but
for the lightning: i want it to come out of the air, so that the height of the sprite dont matter becous now when players die (very low in the map) the lightning starts coming out of the air about one meter above the player heads and stops at his waste. for the explosion: it starts and his waste when it should start at the floor. - for the lightning: Can I fix this by making he sprite's height very big and keep the width or is there a way to code it so that the sprite automaticly gets streched when it spawns and starts from to top point of the map? - for the explosion: im gonna change the z cordinate for the sprite to write_coord(origin[2]); (without the +=30) and see what that gives EDIT: ok after alot of testing I now have this but i cant get it compiled becous of some errors
Spoiler
Errors: Code:
Error: Undefined symbol "entity_get_vector" on line 421 |
Re: [HOWTO] Spawn Sprites
Sorry I'm Wrong
PHP Code:
|
Re: [HOWTO] Spawn Sprites
Spoiler
Test this:
Spoiler
|
All times are GMT -4. The time now is 19:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.