Creating a wall
Hi,
Could anyone give me an example on how to make a wall "func_wall" going from for example (x,y,z) from (1.0, 1.0, 1.0) to (8.0, 28.0, 1.0) (the two lower corners) with a height of 20.0 and a thickness of 10.0 ? there's... create_entity("func_wall") After that, for setting its origin and all I'm fine. But how the heck to I set its dimensions? I'm a bit lost Thanks |
Re: Creating a wall
Search for these function in include.
an example : entity_set_size(ent, {-16.0, -16.0, 0.0}, {16.0, 16.0, 2.0}) or engfunc(EngFunc_SetSize, id, {-16.0, -16.0, 0.0}, {16.0, 16.0, 2.0}) Note that your entity need a model to spawn at correct origin. |
Re: Creating a wall
Is there a way to have an invisible model or something? I'd just like the wall to be invisible, but still solid.
|
Re: Creating a wall
Quote:
PHP Code:
|
Re: Creating a wall
Another question guys!
Is there a kind of dummy model I can use (since its invisible i absolutely dont care about the model used). I'm just not sure what to put inside the mdl field. |
Re: Creating a wall
You may want to look at Walkguard for reference (and maybe it already does what you need): https://forums.alliedmods.net/showthread.php?t=55245
For a generic model you should use something from the default Half-Life which will ensure that it never has to be downloaded for any mod you want to support. Something like "rpgrocket.mdl" is often used for this purpose. Walkguard uses "gib_skull.mdl" for example. |
All times are GMT -4. The time now is 13:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.