Post: Spawning Solid Objects
12-17-2011, 12:44 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); hey guys,ive put together a script which spawns a solid model by co-ords, and its the smallest one ive seen in awhile, i did some research for other varibles and entities and came across this,i tested it to see what it did and it spawned a non- laggy barrier inside the object,the down side of this script is that its only a small barrier but i think you can adjust it by the value 2 or more, so enjoy.

    
RandomObject = spawn( "script_model", (0,0,0) ); // place your object co-ords in here
RandomObject setmodel("model here"); //model name goes in here, must be precached!
RandomObject setContents(1); //makes a small barrier inside the object, no lag at all!


preview

You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Uk_ViiPeR for this useful post:

Taylor
12-17-2011, 04:35 PM #20
Originally posted by UK
ye otherwise it wont work, its kind of obvious.


Awesome face

watch who your speaking to Winky Winky
12-18-2011, 04:18 PM #21
Correy
I'm the Original
Originally posted by UK
hey guys,ive put together a script which spawns a solid model by co-ords, and its the smallest one ive seen in awhile, i did some research for other varibles and entities and came across this,i tested it to see what it did and it spawned a non- laggy barrier inside the object,the down side of this script is that its only a small barrier but i think you can adjust it by the value 2 or more, so enjoy.

    
RandomObject = spawn( "script_model", (0,0,0) ); // place your object co-ords in here
RandomObject setmodel("model here"); //model name goes in here, must be precached!
RandomObject setContents(1); //makes a small barrier inside the object, no lag at all!


preview

You must login or register to view this content.


the amount of times ive tried to get this to work, thank :y:

The following 2 users say thank you to Correy for this useful post:

Sterg, Uk_ViiPeR
12-18-2011, 08:11 PM #22
Originally posted by reScript
Now this is something I came across a while ago with java, now as gsc is pretty much java's child I will show you.
Firstly the directory of these are within java.util.Collection, within has all the element commands you would need.
Here are some attributes I think may work in gsc.


  • addContent(<int index>Winky Winky //adding another content (to child elements?)

  • clone() //clones elements content

  • cloneContent() //returns all containing clones within the element

  • getContent() //returns elements content

  • removeContent() //removes element content

  • setContent(<int index>Winky Winky //set content ( 0 I believe is setting up the content, 1 is setting the content)


Hope they help.

---------- Post added at 01:08 PM ---------- Previous post was at 01:07 PM ----------


Forgot to quote. :p

now this is usefull,thanks for the research Smile
12-18-2011, 09:26 PM #23
Originally posted by reScript
No problem, hope at-least one of them work Happy
I bet they don't Happy
12-18-2011, 10:10 PM #24
Originally posted by reScript
Well if "setContent(<int index>Winky Winky" works and gsc is so similar to Java, I think they will. :3

I'm pretty sure these two will though.

  • getContent() //returns elements content

  • removeContent() //removes element content


I suspect that setContents() is just a function written for COD. Nothing to do with Java, just a coincidence..

The following user thanked x_DaftVader_x for this useful post:

IELIITEMODZX
12-19-2011, 11:24 AM #25
Originally posted by reScript
Sorry for trying to help then Gaspkay:
apology accepted Awesome face

The following user thanked x_DaftVader_x for this useful post:

txlonghorn97

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo