Add entity in map
Hello, i newbie in AMXX scripting, and i want to create plugin for add entity in special map.
Simple plan: If current map = "de_dust2" If Create Entity "cycler_sprite" Add classname? Add "origin" (coordinates) Add "model" (sprites/*.spr) Add "angles" EndIf EndIf I try: Code:
/* Script generated by Pawn Studio */Thanks & sorry! And question: where to get a compiler? I use this: http://www.amxmodx.org/webcompiler.cgi. |
Re: Add entity in map
Don't use info_target, use cycler_sprite as entity name and don't forget to spawn it ; dllfunc( DLLFunc_Spawn, entity )
|
Re: Add entity in map
I added env_rain in de_dust2 map:
Code:
/* Plugin generated by AMXX-Studio */ |
Re: Add entity in map
Try in plugin_precache()
|
Re: Add entity in map
Also you dont need to put origin for env_snow, it will be overall anyway.
|
Re: Add entity in map
Quote:
Quote:
|
Re: Add entity in map
Quote:
|
Re: Add entity in map
I successfully delete env_rain entity from de_aztec:
Code:
public plugin_init(){But how to delete 5 ambient_generic from this map? I try: remove_entity_name("ambient_generic") — fail :shock:. |
Re: Add entity in map
ambient_generic should work fine, and try also trigger_multiple, it makes the big thunder sound on the bridge and more..
|
Re: Add entity in map
Quote:
|
| All times are GMT -4. The time now is 22:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.